diff options
author | untir_l <87096069+untir-l@users.noreply.github.com> | 2022-02-18 10:15:06 +0000 |
---|---|---|
committer | untir_l <87096069+untir-l@users.noreply.github.com> | 2022-02-18 10:15:06 +0000 |
commit | c73c5ba7f5fcd78fc68417f500dbfac0f228f52a (patch) | |
tree | b2e0fc5fc7d9ba3ece4e3003b0485086f5950033 /Makefile | |
download | hitomezashi-c73c5ba7f5fcd78fc68417f500dbfac0f228f52a.tar hitomezashi-c73c5ba7f5fcd78fc68417f500dbfac0f228f52a.tar.gz hitomezashi-c73c5ba7f5fcd78fc68417f500dbfac0f228f52a.zip |
Initial commit
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 |