From c73c5ba7f5fcd78fc68417f500dbfac0f228f52a Mon Sep 17 00:00:00 2001 From: untir_l <87096069+untir-l@users.noreply.github.com> Date: Fri, 18 Feb 2022 15:45:06 +0530 Subject: Initial commit --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3-57-g22cb