2003-08-02 20:27:05 +00:00
|
|
|
DIST_SUBDIRS = 2d 3d maths mem cfile console iff texmap misc arch main libmve utilities
|
2003-06-02 05:56:37 +00:00
|
|
|
|
2003-06-02 06:15:41 +00:00
|
|
|
SUBDIRS = ${DIST_SUBDIRS} @D2X_SUBDIRS@
|
2001-10-13 05:46:13 +00:00
|
|
|
|
2004-05-13 20:39:36 +00:00
|
|
|
EXTRA_SUBDIRS = include unused debian rpm VisualC VisualCE
|
2001-01-24 11:11:07 +00:00
|
|
|
|
2001-10-24 09:30:02 +00:00
|
|
|
bin_PROGRAMS = @TARGETS@
|
2001-10-19 09:37:48 +00:00
|
|
|
|
2002-07-17 01:03:02 +00:00
|
|
|
EXTRA_PROGRAMS = d2x d2x-sdl d2x-gl d2x-svga d2x-ggi
|
2001-10-19 09:37:48 +00:00
|
|
|
|
2001-12-03 02:43:02 +00:00
|
|
|
ARCH_LIBS = $(foreach subdir,${D2X_ARCH_SUBDIRS},arch/${subdir}/libarch_${subdir}.a)
|
|
|
|
|
2001-10-19 09:37:48 +00:00
|
|
|
if MINGW32
|
2003-04-30 20:08:10 +00:00
|
|
|
LD_KLUDGE = main/inferno.o
|
2003-04-30 20:03:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if MACOSX
|
|
|
|
AM_LDFLAGS = -all_load
|
2001-10-31 07:40:51 +00:00
|
|
|
endif
|
2001-10-19 09:37:48 +00:00
|
|
|
|
2001-10-25 02:27:57 +00:00
|
|
|
if EDITOR
|
|
|
|
EDITOR_LIBS = main/editor/libeditor.a
|
|
|
|
endif
|
|
|
|
|
2003-06-02 05:56:37 +00:00
|
|
|
if CONSOLE
|
|
|
|
CONSOLE_LIBS = console/libconsole.a
|
|
|
|
endif
|
|
|
|
|
2001-10-19 09:37:48 +00:00
|
|
|
d2x_SOURCES =
|
|
|
|
d2x_sdl_SOURCES =
|
2002-07-17 01:03:02 +00:00
|
|
|
d2x_gl_SOURCES =
|
2001-10-19 09:37:48 +00:00
|
|
|
d2x_svga_SOURCES =
|
|
|
|
d2x_ggi_SOURCES =
|
|
|
|
|
2003-06-02 05:56:37 +00:00
|
|
|
d2x_LDADD = ${LD_KLUDGE} main/libmain.a ${EDITOR_LIBS} 3d/lib3d.a 2d/lib2d.a ${ARCH_LIBS} libmve/libmve.a mem/libmem.a cfile/libcfile.a iff/libiff.a texmap/libtexmap.a misc/libmisc.a maths/libmaths.a ${CONSOLE_LIBS}
|
2001-10-19 09:37:48 +00:00
|
|
|
|
|
|
|
if MINGW32
|
|
|
|
if USE_NETWORK
|
2001-11-27 20:00:51 +00:00
|
|
|
d2x_sdl_LDADD = ${d2x_LDADD} -lwsock32
|
2001-10-19 09:37:48 +00:00
|
|
|
else
|
2001-11-27 20:00:51 +00:00
|
|
|
d2x_sdl_LDADD = ${d2x_LDADD}
|
2001-10-19 09:37:48 +00:00
|
|
|
endif
|
|
|
|
else
|
2002-07-22 22:39:38 +00:00
|
|
|
d2x_sdl_LDADD = ${d2x_LDADD} -lm
|
2001-10-19 09:37:48 +00:00
|
|
|
endif
|
2002-07-17 01:03:02 +00:00
|
|
|
d2x_gl_LDADD = ${d2x_sdl_LDADD} ${OGL_LIBS}
|
2001-10-19 09:37:48 +00:00
|
|
|
d2x_svga_LDADD = ${d2x_sdl_LDADD} ${SVGA_LIBS}
|
|
|
|
d2x_ggi_LDADD = ${d2x_sdl_LDADD} ${GGI_LIBS}
|
|
|
|
|
2001-10-13 03:02:12 +00:00
|
|
|
dist-hook:
|
2001-10-20 03:11:35 +00:00
|
|
|
rm -rf `find $(distdir) -name CVS`
|
|
|
|
# rm -f `find $(distdir) -name Makefile`
|
2001-01-19 03:30:16 +00:00
|
|
|
|
2002-08-22 02:24:01 +00:00
|
|
|
pkgdatadir = @sharepath@
|
|
|
|
missiondir = ${pkgdatadir}/missions
|
|
|
|
|
2003-05-29 06:26:27 +00:00
|
|
|
CLEANFILES = @TARGETS@ Info.plist
|
|
|
|
|
2001-10-20 03:11:35 +00:00
|
|
|
EXTRA_DIST = ${EXTRA_SUBDIRS} \
|
2001-01-24 12:51:32 +00:00
|
|
|
ChangeLog \
|
2003-04-12 01:17:54 +00:00
|
|
|
README.utils \
|
2001-01-24 11:11:07 +00:00
|
|
|
djgpp.bat djgpp.sh \
|
2001-10-12 03:06:33 +00:00
|
|
|
autogen.sh cygconf \
|
2002-08-29 08:43:48 +00:00
|
|
|
cvshowto.txt readme.txt installation.txt compilerdefs.txt \
|
2002-08-22 02:24:01 +00:00
|
|
|
d2x-sdl.sh d2x-gl.sh
|