From caed302f2ff36785ae91000b1ddaa4fdd8c54418 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 26 Nov 2017 10:57:49 +0100 Subject: [PATCH] Refactor makefile to include SRCS --- unittest/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unittest/Makefile b/unittest/Makefile index 8b24f9c..68bb546 100644 --- a/unittest/Makefile +++ b/unittest/Makefile @@ -9,7 +9,8 @@ INCLUDE = ../include default: $(TARGET) all: default -OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c)) frozen/frozen.o +OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c)) +SRCS = frozen/frozen.c HEADERS = $(wildcard *.h) %.o: %.c $(HEADERS) @@ -18,7 +19,7 @@ HEADERS = $(wildcard *.h) .PRECIOUS: $(TARGET) $(OBJECTS) $(TARGET): $(OBJECTS) - $(CC) $(CFLAGS) -I$(INCLUDE) $(OBJECTS) $(LIBS) -o $@ + $(CC) $(CFLAGS) -I$(INCLUDE) $(OBJECTS) $(LIBS) $(SRCS) -o $@ clean: -rm -f $(OBJECTS)