2001-10-13 05:46:13 +00:00
|
|
|
EXTRA_SUBDIRS = editor old
|
2001-01-24 11:11:07 +00:00
|
|
|
|
2001-01-29 14:09:49 +00:00
|
|
|
CFLAGS += -fwritable-strings
|
2001-01-19 03:30:16 +00:00
|
|
|
|
2001-01-29 14:09:49 +00:00
|
|
|
INCLUDES = -I$(top_srcdir)/includes -I$(top_srcdir)/arch/include
|
|
|
|
|
|
|
|
bin_PROGRAMS = @TARGETS@
|
|
|
|
|
|
|
|
EXTRA_PROGRAMS = d2x d2x-sdl d2x-ogl d2x-svga d2x-ggi
|
|
|
|
|
|
|
|
LDFLAGS = -export-dynamic
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2001-10-12 00:18:40 +00:00
|
|
|
if MINGW32
|
|
|
|
d2x_sdl_LDADD = ${d2x_LDADD} ${SDL_LIBS}
|
2001-01-30 04:45:51 +00:00
|
|
|
else
|
2001-01-29 14:09:49 +00:00
|
|
|
d2x_sdl_LDADD = ${d2x_LDADD} -lm -ldl -lpthread ${SDL_LIBS}
|
2001-01-30 04:45:51 +00:00
|
|
|
endif
|
2001-01-29 14:09:49 +00:00
|
|
|
d2x_ogl_LDADD = ${d2x_sdl_LDADD} ${OGL_LIBS}
|
|
|
|
d2x_svga_LDADD = ${d2x_sdl_LDADD} ${SVGA_LIBS}
|
|
|
|
d2x_ggi_LDADD = ${d2x_sdl_LDADD} ${GGI_LIBS}
|
2001-01-19 03:30:16 +00:00
|
|
|
|
|
|
|
d2x_SOURCES = \
|
2001-10-12 00:18:40 +00:00
|
|
|
ai.c gamerend.c lighting.c paging.c switch.c \
|
2001-01-19 03:30:16 +00:00
|
|
|
ai2.c effects.c gamesave.c menu.c physics.c texmerge.c \
|
|
|
|
aipath.c endlevel.c gameseg.c mglobal.c piggy.c text.c \
|
|
|
|
automap.c escort.c gameseq.c mission.c playsave.c titles.c \
|
|
|
|
bm.c fireball.c gauges.c morph.c polyobj.c vclip.c \
|
|
|
|
bmread.c fuelcen.c hostage.c multi.c powerup.c wall.c \
|
|
|
|
cntrlcen.c fvi.c hud.c multibot.c render.c weapon.c \
|
|
|
|
collide.c game.c inferno.c netmisc.c robot.c \
|
|
|
|
config.c gamecntl.c kconfig.c network.c scores.c \
|
|
|
|
controls.c gamefont.c kludge.c newdemo.c slew.c \
|
|
|
|
credits.c gamemine.c kmatrix.c newmenu.c songs.c \
|
|
|
|
crypt.c gamepal.c laser.c object.c state.c \
|
|
|
|
console.c cmd.c
|
|
|
|
|
2001-01-29 14:09:49 +00:00
|
|
|
d2x_sdl_SOURCES = ${d2x_SOURCES}
|
|
|
|
d2x_ogl_SOURCES = ${d2x_SOURCES}
|
|
|
|
d2x_svga_SOURCES = ${d2x_SOURCES}
|
|
|
|
d2x_ggi_SOURCES = ${d2x_SOURCES}
|
2001-01-24 11:11:07 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
descent.cfg inferno.ini \
|
|
|
|
link.bat \
|
|
|
|
ai.h aistruct.h automap.h bm.h bmread.h cdrom.h cntrlcen.h collide.h \
|
|
|
|
compbit.h config.h controls.h credits.h desc_id.h desw.h digi.h effects.h \
|
|
|
|
endlevel.h fireball.h fuelcen.h fvi.h fvi_a.h game.h gamefont.h gamemine.h \
|
|
|
|
gamepal.h gamesave.h gameseg.h gameseq.h gamestat.h gauges.h hostage.h \
|
|
|
|
inferno.h joydefs.h kconfig.h kmatrix.h laser.h lighting.h menu.h mission.h \
|
|
|
|
modem.h morph.h movie.h multi.h multibot.h netmisc.h network.h newdemo.h \
|
|
|
|
newmenu.h object.h paging.h physics.h piggy.h player.h playsave.h polyobj.h \
|
|
|
|
powerup.h render.h robot.h scores.h screens.h segment.h segpoint.h slew.h \
|
|
|
|
songs.h sounds.h state.h switch.h terrain.h texmerge.h text.h textures.h \
|
|
|
|
titles.h vclip.h vers_id.h wall.h weapon.h \
|
|
|
|
dumpmine.c
|
2001-10-13 05:46:13 +00:00
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
list='$(EXTRA_SUBDIRS)'; for subdir in $$list; do \
|
2001-10-14 19:49:19 +00:00
|
|
|
( cd $(srcdir) && tar --exclude=CVS -cf - $$subdir ) \
|
|
|
|
| ( cd $(distdir) && tar xf - ) \
|
2001-10-13 05:46:13 +00:00
|
|
|
done
|