2002-01-31 18:47:38 +00:00
|
|
|
AUTOMAKE_OPTIONS=1.5
|
|
|
|
|
2001-10-25 08:25:35 +00:00
|
|
|
SUBDIRS = 2d 3d maths mem cfile iff texmap misc arch main
|
2001-10-13 05:46:13 +00:00
|
|
|
|
2002-02-23 21:36:30 +00:00
|
|
|
EXTRA_SUBDIRS = include tools unused debian rpm
|
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
|
|
|
|
|
|
|
EXTRA_PROGRAMS = d2x d2x-sdl d2x-ogl d2x-svga d2x-ggi
|
|
|
|
|
|
|
|
CCLD = ${CC}
|
|
|
|
LDFLAGS = -export-dynamic
|
|
|
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
|
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
|
2001-10-20 00:26:05 +00:00
|
|
|
LD_KLUDGE = main/inferno.o
|
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
|
|
|
|
|
2001-10-19 09:37:48 +00:00
|
|
|
d2x_SOURCES =
|
|
|
|
d2x_sdl_SOURCES =
|
|
|
|
d2x_ogl_SOURCES =
|
|
|
|
d2x_svga_SOURCES =
|
|
|
|
d2x_ggi_SOURCES =
|
|
|
|
|
2001-10-31 07:40:51 +00:00
|
|
|
d2x_LDADD = ${LD_KLUDGE} main/libmain.a ${EDITOR_LIBS} 3d/lib3d.a 2d/lib2d.a ${ARCH_LIBS} mem/libmem.a cfile/libcfile.a iff/libiff.a texmap/libtexmap.a misc/libmisc.a maths/libmaths.a
|
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
|
2001-11-27 20:00:51 +00:00
|
|
|
d2x_sdl_LDADD = ${d2x_LDADD} -lm -ldl -lpthread
|
2001-10-19 09:37:48 +00:00
|
|
|
endif
|
|
|
|
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-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-10-13 03:02:12 +00:00
|
|
|
$(MAKE) changelog
|
2001-10-20 03:11:35 +00:00
|
|
|
cp -a $(srcdir)/ChangeLog $(distdir)
|
2001-10-13 03:02:12 +00:00
|
|
|
|
2001-01-24 11:11:07 +00:00
|
|
|
changelog::
|
2001-10-14 19:49:19 +00:00
|
|
|
rm -f $(srcdir)/ChangeLog
|
|
|
|
touch $(srcdir)/ChangeLog
|
2001-10-20 03:11:35 +00:00
|
|
|
cd $(srcdir) && tools/cvs2cl/cvs2cl.pl -b --utc
|
|
|
|
rm -f $(srcdir)/ChangeLog.bak
|
2001-01-19 03:30:16 +00:00
|
|
|
|
2001-10-20 03:11:35 +00:00
|
|
|
EXTRA_DIST = ${EXTRA_SUBDIRS} \
|
2001-01-24 12:51:32 +00:00
|
|
|
ChangeLog \
|
2001-01-24 11:11:07 +00:00
|
|
|
djgpp.bat djgpp.sh \
|
2001-10-12 03:06:33 +00:00
|
|
|
autogen.sh cygconf \
|
2002-02-11 07:32:44 +00:00
|
|
|
cvshowto.txt readme.txt license.txt installation.txt mingw32.txt compilerdefs.txt \
|
|
|
|
d2x-sdl.sh d2x-ogl.sh
|