We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26719ab commit afd82e1Copy full SHA for afd82e1
.gitignore
@@ -1,4 +1,5 @@
1
load81
2
+*.o
3
lua/src/*.o
4
lua/src/*.a
5
lua/src/lua
Makefile
@@ -1,13 +1,16 @@
+PKGS=sdl SDL_gfx
+CFLAGS=-O2 -Wall -W -Ilua/src `pkg-config --cflags $(PKGS)`
+LDLIBS=-lm lua/src/liblua.a `pkg-config --libs $(PKGS)`
+
all: load81
6
-load81: load81.c lua/src/liblua.a bitfont.h
- $(CC) -Ilua/src -O2 -Wall -W $< `sdl-config --cflags` `sdl-config --libs` -lm -lSDL_gfx lua/src/liblua.a -o $@
7
+load81.o: bitfont.h
8
9
lua/src/liblua.a:
10
-(cd lua && $(MAKE) ansi)
11
12
clean:
- rm -f load81
13
+ rm -f load81 load81.o
14
15
distclean: clean
16
-(cd lua && $(MAKE) clean)
0 commit comments