Skip to content

Instantly share code, notes, and snippets.

@YtvwlD
Last active September 7, 2018 19:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YtvwlD/fe7a14235623bdf594243905193135c9 to your computer and use it in GitHub Desktop.
Save YtvwlD/fe7a14235623bdf594243905193135c9 to your computer and use it in GitHub Desktop.
.PHONY: tests
CFLAGS=-Wall -std=c99
TESTCFLAGS:=$(shell pkg-config --cflags --libs check)
#FILE=<datei>
main:
make -B CFLAGS="$(CFLAGS) main.c" $(FILE)
run: main
./$(FILE)
tests:
$(CC) $(FILE).c $(FILE)_tests.c -o tests $(CFLAGS) $(TESTCFLAGS)
test: tests
./tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment