git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/ttyvaders/trunk@78 92316355-f0b4-4df1-b90c-862c8a59935fmaster
@@ -2,7 +2,7 @@ | |||||
# Automake targets and declarations for ttyvaders | # Automake targets and declarations for ttyvaders | ||||
############################################################################### | ############################################################################### | ||||
SUBDIRS = src | |||||
SUBDIRS = libee test src | |||||
DIST_SUBDIRS = $(SUBDIRS) autotools debian | DIST_SUBDIRS = $(SUBDIRS) autotools debian | ||||
EXTRA_DIST = doc/shapes.txt bootstrap | EXTRA_DIST = doc/shapes.txt bootstrap | ||||
@@ -12,6 +12,7 @@ AM_CONFIG_HEADER(config.h) | |||||
AM_PROG_CC_C_O | AM_PROG_CC_C_O | ||||
AC_PROG_CPP | AC_PROG_CPP | ||||
AC_PROG_RANLIB | |||||
AC_ARG_ENABLE(slang, | AC_ARG_ENABLE(slang, | ||||
[ --enable-slang slang graphics support (default enabled)]) | [ --enable-slang slang graphics support (default enabled)]) | ||||
@@ -41,6 +42,8 @@ AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES}) | |||||
AC_OUTPUT([ | AC_OUTPUT([ | ||||
Makefile | Makefile | ||||
libee/Makefile | |||||
test/Makefile | |||||
src/Makefile | src/Makefile | ||||
autotools/Makefile | autotools/Makefile | ||||
debian/Makefile | debian/Makefile | ||||
@@ -0,0 +1,11 @@ | |||||
if USE_SLANG | |||||
CPPFLAGS_slang = -DUSE_SLANG | |||||
endif | |||||
if USE_NCURSES | |||||
CPPFLAGS_ncurses = -DUSE_NCURSES | |||||
endif | |||||
lib_LIBRARIES = libee.a | |||||
libee_a_SOURCES = ee.c | |||||
libee_a_CPPFLAGS = -I../src $(CPPFLAGS_slang) $(CPPFLAGS_ncurses) | |||||
@@ -26,7 +26,6 @@ ttyvaders_SOURCES = \ | |||||
collide.c \ | collide.c \ | ||||
common.h \ | common.h \ | ||||
explosions.c \ | explosions.c \ | ||||
../libee/ee.c \ | |||||
main.c \ | main.c \ | ||||
math.c \ | math.c \ | ||||
overlay.c \ | overlay.c \ | ||||
@@ -37,5 +36,5 @@ ttyvaders_SOURCES = \ | |||||
$(NULL) | $(NULL) | ||||
ttyvaders_CPPFLAGS = $(CPPFLAGS_slang) $(CPPFLAGS_ncurses) | ttyvaders_CPPFLAGS = $(CPPFLAGS_slang) $(CPPFLAGS_ncurses) | ||||
ttyvaders_LDADD = $(LDFLAGS_slang) $(LDFLAGS_ncurses) | |||||
ttyvaders_LDADD = ../libee/libee.a $(LDFLAGS_slang) $(LDFLAGS_ncurses) | |||||