Browse Source

* libee is now (almost) standalone.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/ttyvaders/trunk@78 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 21 years ago
parent
commit
ae8181beb7
5 changed files with 16 additions and 3 deletions
  1. +1
    -1
      Makefile.am
  2. +3
    -0
      configure.ac
  3. +11
    -0
      libee/Makefile.am
  4. +1
    -2
      src/Makefile.am
  5. +0
    -0
      test/Makefile.am

+ 1
- 1
Makefile.am View File

@@ -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


+ 3
- 0
configure.ac View File

@@ -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


+ 11
- 0
libee/Makefile.am View File

@@ -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)


+ 1
- 2
src/Makefile.am View File

@@ -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)



+ 0
- 0
test/Makefile.am View File


Loading…
Cancel
Save