configuration fixes
[btb/d2x.git] / main / Makefile.am
1 INCLUDES = -I $(top_srcdir)/includes -fwritable-strings
2
3 bin_PROGRAMS = d2x
4
5 d2x_SOURCES = \
6 ai.c        gamerend.c  lighting.c      paging.c    switch.c \
7 ai2.c       effects.c   gamesave.c  menu.c      physics.c   texmerge.c \
8 aipath.c    endlevel.c  gameseg.c   mglobal.c   piggy.c     text.c \
9 automap.c   escort.c    gameseq.c   mission.c   playsave.c  titles.c \
10 bm.c        fireball.c  gauges.c    morph.c     polyobj.c   vclip.c \
11 bmread.c    fuelcen.c   hostage.c   multi.c     powerup.c   wall.c \
12 cntrlcen.c  fvi.c       hud.c       multibot.c  render.c    weapon.c \
13 collide.c   game.c      inferno.c   netmisc.c   robot.c \
14 config.c    gamecntl.c  kconfig.c   network.c   scores.c \
15 controls.c  gamefont.c  kludge.c    newdemo.c   slew.c \
16 credits.c   gamemine.c  kmatrix.c   newmenu.c   songs.c \
17 crypt.c     gamepal.c   laser.c     object.c    state.c \
18 console.c   cmd.c
19
20
21 d2x_LDFLAGS = -export-dynamic
22
23 if ENV_DJGPP
24  d2x_LDADD = ../3d/lib3d.a ../2d/lib2d.a ../mem/libmem.a ../cfile/libcfile.a ../iff/libiff.a ../texmap/libtexmap.a ../misc/libmisc.a ../maths/libmaths.a  ../video/libvideo.a ../arch/libarch.a ../sound/libsound.a ../input/libinput.a
25
26 else
27  d2x_LDADD = ../3d/lib3d.a ../2d/lib2d.a ../mem/libmem.a ../cfile/libcfile.a ../iff/libiff.a ../texmap/libtexmap.a ../misc/libmisc.a ../maths/libmaths.a ../arch/libarch.a ../video/libvideo.a ../sound/libsound.a ../input/libinput.a -lm -ldl -lpthread ${SDL_LIBS}
28
29 if USE_OPENGL
30  d2x_LDADD += ${OGL_LIBS} -lgii -L/usr/X11R6/lib -lXext
31 endif
32
33 if USE_SVGALIB
34  d2x_LDADD += ${SVGA_LIBS}
35 endif
36
37 if USE_GGI
38  d2x_LDADD += ${GGI_LIBS}
39 endif
40
41 endif