3 SUBDIRS = 2d 3d maths mem cfile iff texmap misc arch main
5 EXTRA_SUBDIRS = includes tools unused debian rpm
7 bin_PROGRAMS = @TARGETS@
9 EXTRA_PROGRAMS = d2x d2x-sdl d2x-ogl d2x-svga d2x-ggi
12 LDFLAGS = -export-dynamic
13 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
15 ARCH_LIBS = $(foreach subdir,${D2X_ARCH_SUBDIRS},arch/${subdir}/libarch_${subdir}.a)
18 LD_KLUDGE = main/inferno.o
22 EDITOR_LIBS = main/editor/libeditor.a
31 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
35 d2x_sdl_LDADD = ${d2x_LDADD} -lwsock32
37 d2x_sdl_LDADD = ${d2x_LDADD}
40 d2x_sdl_LDADD = ${d2x_LDADD} -lm -ldl -lpthread
42 d2x_ogl_LDADD = ${d2x_sdl_LDADD} ${OGL_LIBS}
43 d2x_svga_LDADD = ${d2x_sdl_LDADD} ${SVGA_LIBS}
44 d2x_ggi_LDADD = ${d2x_sdl_LDADD} ${GGI_LIBS}
47 rm -rf `find $(distdir) -name CVS`
48 # rm -f `find $(distdir) -name Makefile`
50 cp -a $(srcdir)/ChangeLog $(distdir)
53 rm -f $(srcdir)/ChangeLog
54 touch $(srcdir)/ChangeLog
55 cd $(srcdir) && tools/cvs2cl/cvs2cl.pl -b --utc
56 rm -f $(srcdir)/ChangeLog.bak
58 EXTRA_DIST = ${EXTRA_SUBDIRS} \
62 cvshowto.txt readme.txt license.txt installation.txt mingw32.txt compilerdefs.txt \