diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0bdde87 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +.POSIX: + +CC = gcc +CFLAGS = -std=c11 -Wall -Wpedantic -O3 `sdl2-config --cflags` +LDLIBS = `sdl2-config --libs` +AR = ar +ARFLAGS = rcs + +all: libhitomezashi.a hitomezashi_cli + +libhitomezashi.a: hitomezashi.o + $(AR) $(ARFLAGS) libhitomezashi.a hitomezashi.o + +hitomezashi.o: hitomezashi.c hitomezashi.h + +hitomezashi_cli: hitomezashi_cli.o libhitomezashi.a + +hitomezashi_cli.o: hitomezashi_cli.c hitomezashi_cli.h + +clean: + rm -f *.a *.o hitomezashi_cli |