diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2023-06-01 13:31:24 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2023-06-01 13:33:56 +0000 |
commit | 3a2fef94230f35d948634ffef83660afdffa0bad (patch) | |
tree | e4fb261e6fcf6d0b4b3d4b688aa94757700f45ab /Makefile | |
parent | 316382d74ed4a705c43e2380e7af20a500c24fa9 (diff) | |
download | hitomezashi-3a2fef94230f35d948634ffef83660afdffa0bad.tar hitomezashi-3a2fef94230f35d948634ffef83660afdffa0bad.tar.gz hitomezashi-3a2fef94230f35d948634ffef83660afdffa0bad.zip |
Complete libhitomezashi, reset project
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 80f8e04..0000000 --- a/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -.POSIX: - -CFLAGS = -std=c11 -Wall -Wno-unused-function --pedantic-errors -O3 `sdl2-config --cflags` -LDLIBS = `sdl2-config --libs` - -ARFLAGS = rcs - -all: - -libhitomezashi.a: hitomezashi.o hitomezashi_utils.o - $(AR) $(ARFLAGS) libhitomezashi.a hitomezashi.o hitomezashi_utils.o -hitomezashi.o: lib/hitomezashi.c lib/hitomezashi.h - $(CC) -c $(CFLAGS) lib/hitomezashi.c -hitomezashi_utils.o: lib/hitomezashi_utils.c lib/hitomezashi_utils.h - $(CC) -c $(CFLAGS) lib/hitomezashi_utils.c - - -hitomezashi_cli: hitomezashi_cli.o libhitomezashi.a - $(CC) $(LDFLAGS) $(LDLIBS) -o hitomezashi_cli hitomezashi_cli.o libhitomezashi.a -hitomezashi_cli.o: cli/hitomezashi_cli.c cli/hitomezashi_cli.h - $(CC) -c $(CFLAGS) -I./lib/ -I./cli/optparse/ -o hitomezashi_cli.o cli/hitomezashi_cli.c - - -hitomezashi_web.html: web/hitomezashi_web_shell.html hitomezashi_web.o libhitomezashi.a - $(CC) $(LDFLAGS) $(LDLIBS) -O3 -s MINIFY_HTML=0 --shell-file ./web/hitomezashi_web_shell.html -o hitomezashi_web.html hitomezashi_web.o libhitomezashi.a -hitomezashi_web.o: web/hitomezashi_web.c web/hitomezashi_web.h - $(CC) -c $(CFLAGS) -I./lib/ web/hitomezashi_web.c - -format-code: - clang-format -i --verbose **/*.c **/*.h - -clean: - rm -vf *.a *.o *.js *.wasm *.html hitomezashi_cli |