Add rules to build test binary.
This commit is contained in:
parent
18f2f4efcd
commit
d787da74bb
5
Makefile
5
Makefile
@ -16,16 +16,15 @@ TEST_SRC = $(filter-out src/main.c, $(SRC) $(wildcard test/*.c))
|
||||
$(TARGETNAME): $(TARGET)
|
||||
|
||||
$(TARGET): $(SRC)
|
||||
mkdir -p build
|
||||
mkdir -p $(BUILDFOLDER)
|
||||
cc -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(INC) -lm -lftdi1
|
||||
|
||||
$(TEST_TARGETNAME): $(TEST_TARGET)
|
||||
|
||||
$(TEST_TARGET): $(TEST_SRC)
|
||||
echo $(TEST_SRC)
|
||||
mkdir -p $(TEST_BUILDFOLDER)
|
||||
cc -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(INC) -lm -lftdi1 -lcunit
|
||||
|
||||
clean:
|
||||
rm -fr ./src/*.o ./build/*
|
||||
rm -fr ./src/*.o $(BUILDFOLDER)*
|
||||
rm -fr $(TEST_BUILDFOLDER)*
|
||||
|
Loading…
Reference in New Issue
Block a user