forked from vieter-v/libvieter
Add libarchive link Makefile test compilation. Created test units with xcursor-dmz as test package.
This commit is contained in:
parent
1da345f8b3
commit
b2b50b7a84
7 changed files with 400 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -54,7 +54,7 @@ build-test: $(BINS_TEST)
|
|||
# For simplicity, we link every object file to each of the test files. This
|
||||
# might be changed later if this starts to become too slow.
|
||||
$(BINS_TEST): %: %.c.o $(OBJS)
|
||||
$(CC) $^ -o $@
|
||||
$(CC) $^ -larchive -o $@
|
||||
|
||||
# Each test includes the test directory, which contains the acutest header file
|
||||
$(BUILD_DIR)/$(TEST_DIR)/%.c.o: $(TEST_DIR)/%.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue