1 SUBDIRS = 2d 3d maths mem cfile iff texmap misc arch main
3 EXTRA_SUBDIRS = includes tools unused
5 bin_PROGRAMS = @TARGETS@
7 EXTRA_PROGRAMS = d2x d2x-sdl d2x-ogl d2x-svga d2x-ggi
10 LDFLAGS = -export-dynamic
11 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
13 ARCH_LIBS = $(foreach subdir,${D2X_ARCH_SUBDIRS},arch/${subdir}/libarch_${subdir}.a)
16 LD_KLUDGE = main/inferno.o
20 EDITOR_LIBS = main/editor/libeditor.a
29 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
33 d2x_sdl_LDADD = ${d2x_LDADD} -lwsock32
35 d2x_sdl_LDADD = ${d2x_LDADD}
38 d2x_sdl_LDADD = ${d2x_LDADD} -lm -ldl -lpthread
40 d2x_ogl_LDADD = ${d2x_sdl_LDADD} ${OGL_LIBS}
41 d2x_svga_LDADD = ${d2x_sdl_LDADD} ${SVGA_LIBS}
42 d2x_ggi_LDADD = ${d2x_sdl_LDADD} ${GGI_LIBS}
45 rm -rf `find $(distdir) -name CVS`
46 # rm -f `find $(distdir) -name Makefile`
48 cp -a $(srcdir)/ChangeLog $(distdir)
51 rm -f $(srcdir)/ChangeLog
52 touch $(srcdir)/ChangeLog
53 cd $(srcdir) && tools/cvs2cl/cvs2cl.pl -b --utc
54 rm -f $(srcdir)/ChangeLog.bak
56 EXTRA_DIST = ${EXTRA_SUBDIRS} \
60 cvshowto.txt readme.txt license.txt installation.txt mingw32.txt compilerdefs.txt