X-Git-Url: https://git.sesse.net/?p=fjl;a=blobdiff_plain;f=Makefile;fp=Makefile;h=7d9b6d0e33657a21df69d4e56474cc53073603e3;hp=0000000000000000000000000000000000000000;hb=ae2dfff94ee3302e04c37a7fd6ad3722d1babdff;hpb=b6eb12684a5c1001cd80922700b393dd822de5d0 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7d9b6d0 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +CC=gcc +CFLAGS=-std=gnu99 -O2 -msse4.1 +LDFLAGS= + +all: tests + +UNSTUFF_TEST_OBJS=unstuff.o unstuff_test.o +unstuff_test: $(UNSTUFF_TEST_OBJS) + $(CC) $(LDFLAGS) -o $@ $(UNSTUFF_TEST_OBJS) + +INPUT_TEST_OBJS=input.o input_test.o +input_test: $(INPUT_TEST_OBJS) + $(CC) $(LDFLAGS) -o $@ $(INPUT_TEST_OBJS) + +OBJS=$(UNSTUFF_TEST_OBJS) + +tests: unstuff_test input_test +clean: + $(RM) $(UNSTUFF_TEST_OBJS) unstuff_test + $(RM) $(INPUT_TEST_OBJS) input_test + +test: tests + ./unstuff_test + ./input_test