63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
SUBDIRS = 2d 3d maths mem cfile iff texmap misc input video sound arch main
|
|
|
|
EXTRA_SUBDIRS = includes tools unused
|
|
|
|
bin_PROGRAMS = @TARGETS@
|
|
|
|
EXTRA_PROGRAMS = d2x d2x-sdl d2x-ogl d2x-svga d2x-ggi
|
|
|
|
CCLD = ${CC}
|
|
LDFLAGS = -export-dynamic
|
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
if ENV_DJGPP
|
|
ARCH_LIBS = arch/dos/libarch_dos.a
|
|
else
|
|
if MINGW32
|
|
ARCH_LIBS = arch/win32/libarch_win32.a arch/sdl/libarch_sdl.a
|
|
else
|
|
ARCH_LIBS = arch/linux/libarch_linux.a arch/sdl/libarch_sdl.a
|
|
endif
|
|
endif
|
|
|
|
d2x_SOURCES =
|
|
d2x_sdl_SOURCES =
|
|
d2x_ogl_SOURCES =
|
|
d2x_svga_SOURCES =
|
|
d2x_ggi_SOURCES =
|
|
|
|
d2x_LDADD = main/libmain.a ${ARCH_LIBS} 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 sound/libsound.a input/libinput.a
|
|
|
|
if MINGW32
|
|
if USE_NETWORK
|
|
d2x_sdl_LDADD = ${d2x_LDADD} ${SDL_LIBS} -lwsock32
|
|
else
|
|
d2x_sdl_LDADD = ${d2x_LDADD} ${SDL_LIBS}
|
|
endif
|
|
else
|
|
d2x_sdl_LDADD = ${d2x_LDADD} -lm -ldl -lpthread ${SDL_LIBS}
|
|
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}
|
|
|
|
dist-hook:
|
|
list='$(EXTRA_SUBDIRS)'; for subdir in $$list; do \
|
|
( cd $(srcdir) && tar --exclude=CVS/ -cf - $$subdir ) \
|
|
| ( cd $(distdir) && tar xf - ) \
|
|
done
|
|
$(MAKE) changelog
|
|
cp -a ChangeLog $(distdir)
|
|
|
|
changelog::
|
|
rm -f $(srcdir)/ChangeLog
|
|
touch $(srcdir)/ChangeLog
|
|
$(srcdir)/tools/cvs2cl/cvs2cl.pl -b --utc
|
|
rm -f ChangeLog.bak
|
|
|
|
EXTRA_DIST = \
|
|
ChangeLog \
|
|
djgpp.bat djgpp.sh \
|
|
autogen.sh cygconf \
|
|
cvshowto.txt readme.txt license.txt thinking.txt installation.txt mingw32.txt
|