diff options
Diffstat (limited to 'src/arch/posix/Makefile.inc')
-rw-r--r-- | src/arch/posix/Makefile.inc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/arch/posix/Makefile.inc b/src/arch/posix/Makefile.inc new file mode 100644 index 0000000..caf16a7 --- /dev/null +++ b/src/arch/posix/Makefile.inc @@ -0,0 +1,24 @@ +# vim:ft=make + +CC = gcc +CXX = g++ + +INCLUDES += -Iinclude/posix +TARGETS += src/arch/posix/arch.cc src/arch/posix/driver/gpio.cc + +OBJECTS = ${TARGETS:.cc=.o} + +.cc.o: + ${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} + +build/system.elf: ${OBJECTS} + ${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} \ + -o $@ ${OBJECTS} + +run: build/system.elf + build/system.elf + +arch_clean: + rm -f ${OBJECTS} + +.PHONY: arch_clean program |