Skip to content

Commit afd82e1

Browse files
committed
clean up Makefile
1 parent 26719ab commit afd82e1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load81
2+
*.o
23
lua/src/*.o
34
lua/src/*.a
45
lua/src/lua

Makefile

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
PKGS=sdl SDL_gfx
2+
CFLAGS=-O2 -Wall -W -Ilua/src `pkg-config --cflags $(PKGS)`
3+
LDLIBS=-lm lua/src/liblua.a `pkg-config --libs $(PKGS)`
4+
15
all: load81
26

3-
load81: load81.c lua/src/liblua.a bitfont.h
4-
$(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
58

69
lua/src/liblua.a:
710
-(cd lua && $(MAKE) ansi)
811

912
clean:
10-
rm -f load81
13+
rm -f load81 load81.o
1114

1215
distclean: clean
1316
-(cd lua && $(MAKE) clean)

0 commit comments

Comments
 (0)