diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -7,20 +7,21 @@ CLEAN= BUILD_DIR=build/ -SOURCES= +SRC_DIR=src/ +SOURCES= OBJECTS= OBJECTS_FINAL= -include core/make.mk -include draw/make.mk -include filt/make.mk -include hw/make.mk -include mod/make.mk +include $(SRC_DIR)/core/make.mk +include $(SRC_DIR)/draw/make.mk +include $(SRC_DIR)/filt/make.mk +include $(SRC_DIR)/hw/make.mk +include $(SRC_DIR)/mod/make.mk make: $(OBJECTS) - $(CC) $(OBJECTS_FINAL) $(PROJECT).c -o $(PROJECT) $(LDFLAGS) + $(CC) $(OBJECTS_FINAL) $(SRC_DIR)$(PROJECT).c -o $(PROJECT) $(LDFLAGS) ld -r $(OBJECTS_FINAL) -o $(PROJECT).o %.o: %.c |