diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -3,6 +3,21 @@ CC=gcc CFLAGS= LDFLAGS= +BUILD_DIR=build/ -make: - $(CC) radiola.c -o $(PROJECT) +SOURCES= +OBJECTS= +OBJECTS_FINAL= + + + +include hw/make.mk + +make: $(OBJECTS) + $(CC) $(OBJECTS_FINAL) $(PROJECT).c -o $(PROJECT) $(LDFLAGS) + +%.o: %.c + $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@ + +clean: + rm -f $(PROJECT) |