File: Makefile.linux

package info (click to toggle)
gravit 0.5.1+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,416 kB
  • sloc: ansic: 6,841; makefile: 63; sh: 43
file content (26 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FINAL = gravit
OBJS = 	src/main.o src/font.o src/frame.o src/frame-pp.o src/frame-ot.o src/gfx.o src/input.o src/console.o src/osd.o src/spawn.o src/tool.o src/command.o src/fps.o src/color.o src/config.o src/timer.o src/lua.o src/png_save.o src/texture.o

CFLAGS = -g -O2 -Wall `sdl-config --cflags` -Wall -DWITH_LUA -DHAVE_LUA -DHAVE_PNG -I/usr/include/lua5.2 `agar-config --cflags`

LDFLAGS = -L/usr/X11R6/lib -L/usr/i386-linux-gnu -lGL -lGLU -lSDL_ttf -lSDL_image `sdl-config --libs` -lpng -llua5.2 `agar-config --libs`
INSTALL=/bin/install

all: final

install: final
	$(INSTALL) -d $(DESTDIR)usr/bin
	$(INSTALL) -m 755 gravit $(DESTDIR)usr/bin

dep:
	@makedepend $(CFLAGS) src/*.c 2> /dev/null

final: $(OBJS)
	gcc $(OBJS) $(LDFLAGS) -o $(FINAL)

clean:
	rm -f src/*.o $(FINAL)

src/%o: src/%c src/gravit.h
	gcc -c $(CFLAGS) $(subst ,, src/$*c) -o src/$*o