File: Makefile.am

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 (49 lines) | stat: -rw-r--r-- 1,774 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# path to cfg files
sysconfdir=@sysconfdir@/gravit
datadir=@datadir@/gravit
# path to ttf,png,etc
miscdir=@datadir@/gravit/data
# path to skyboxes
# ugly workaround: need one ...dir and one ..._DATA for each skybox
skybox1dir=@datadir@/gravit/data/skybox
skybox2dir=@datadir@/gravit/data/skybox/purplenebula
# path to .gravitspawn files
spawndir=@datadir@/gravit/spawn

sysconf_DATA = cfg/gravit.cfg cfg/screensaver.cfg
misc_DATA =$(shell echo data/*.??*)
skybox1_DATA =$(shell echo data/skybox/*.??*)
skybox2_DATA =$(shell echo data/skybox/purplenebula/*.??*)
spawn_DATA =$(shell echo spawn/*)

bin_PROGRAMS=gravit
gravit_SOURCES=src/color.c src/command.c src/command.h src/config.c src/console.c src/font.c src/font.h src/fps.c src/frame-ot.c src/frame-pp.c src/frame-pp_sse.c src/frame.c src/gfx.c src/gravit.h src/input.c src/main.c src/osd.c src/sdlk.h src/spawn.c src/texture.c src/timer.c src/tool.c src/png_save.c
EXTRA_DIST=README COPYING cfg/gravit.cfg demo.cfg cfg/screensaver.cfg ChangeLog Makefile.old $(misc_DATA) $(spawn_DATA) $(skybox1_DATA) $(skybox2_DATA)

EXTRA_gravit_SOURCES=
gravit_LDADD=

if USE_ICON_RC
gravit_LDADD += src/gravitrc.o
endif

if LUA
#EXTRA_gravit_SOURCES += lua.c
gravit_SOURCES += src/lua.c
gravit_LDADD += $(LUA_LIBS)
endif

#AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)/\" -DDATA_DIR=\"$(datadir)/\" -O3 -Wall $(LUA_CFLAGS)

if AGAR
AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)/\" -DDATA_DIR=\"$(datadir)/\" $(LUA_CFLAGS)
LIBS += -Wl,-rpath=$(AGAR_LIBDIR):/usr/local/lib:../lib
else
AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)/\" -DDATA_DIR=\"$(datadir)/\" $(LUA_CFLAGS) -DWITHOUT_AGAR
endif


# Rule to build windows resources
#%.o : %.rc
src/gravitrc.o: src/gravit.rc
	$(WINDRES) $< $@