1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00
picom/subprojects/test.h/examples/trivial_tests/Makefile
Yuxuan Shui cfdbd11328 Add 'subprojects/test.h/' from commit 'a84877df68873f80ff3620f4993619b35b21f758'
git-subtree-dir: subprojects/test.h
git-subtree-mainline: 061f9aea9d
git-subtree-split: a84877df68
2019-03-23 14:36:27 +00:00

8 lines
304 B
Makefile

all: normal unittest
# A normal binary, compiled without unit tests
normal: test_test1.c test_test2.c ../../test.h
gcc -O test_test1.c test_test2.c -I../../ -o $@
# A binary to run unit tests
unittest: test_test1.c test_test2.c ../../test.h
gcc -g test_test1.c test_test2.c -DUNIT_TEST -I../../ -o $@