Parcourir la source

* Removed CPPFLAGS_slang and CPPFLAGS_ncurses, we now have config.h.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/ttyvaders/trunk@112 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam il y a 21 ans
Parent
révision
c43f74c461
4 fichiers modifiés avec 9 ajouts et 25 suppressions
  1. +7
    -11
      configure.ac
  2. +0
    -8
      libee/Makefile.am
  3. +1
    -3
      src/Makefile.am
  4. +1
    -3
      test/Makefile.am

+ 7
- 11
configure.ac Voir le fichier

@@ -21,20 +21,16 @@ AC_ARG_ENABLE(ncurses,

USE_SLANG=false
USE_NCURSES=false
if test "${enable_ncurses}" = "yes"
then
if test "${enable_ncurses}" = "yes"; then
AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
USE_NCURSES=:
else
if test "${enable_slang}" != "no"
then
AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
USE_SLANG=:
else
:
fi
elif test "${enable_slang}" != "no"; then
AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
USE_SLANG=:
fi

AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})


+ 0
- 8
libee/Makefile.am Voir le fichier

@@ -7,13 +7,6 @@ AM_CFLAGS = -g -O2 -fno-strength-reduce -fomit-frame-pointer
# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
AM_CFLAGS += -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs

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 \
@@ -24,5 +17,4 @@ libee_a_SOURCES = \
circle.c \
triangle.c \
$(NULL)
libee_a_CPPFLAGS = $(CPPFLAGS_slang) $(CPPFLAGS_ncurses)


+ 1
- 3
src/Makefile.am Voir le fichier

@@ -8,11 +8,9 @@ AM_CFLAGS = -g -O2 -fno-strength-reduce -fomit-frame-pointer
AM_CFLAGS += -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs

if USE_SLANG
CPPFLAGS_slang = -DUSE_SLANG
LDFLAGS_slang = -lslang
endif
if USE_NCURSES
CPPFLAGS_ncurses = -DUSE_NCURSES
LDFLAGS_ncurses = -lncurses
endif

@@ -34,6 +32,6 @@ ttyvaders_SOURCES = \
weapons.c \
$(NULL)

ttyvaders_CPPFLAGS = -I../libee $(CPPFLAGS_slang) $(CPPFLAGS_ncurses)
ttyvaders_CPPFLAGS = -I../libee
ttyvaders_LDADD = ../libee/libee.a $(LDFLAGS_slang) $(LDFLAGS_ncurses)


+ 1
- 3
test/Makefile.am Voir le fichier

@@ -8,17 +8,15 @@ AM_CFLAGS = -g -O2 -fno-strength-reduce -fomit-frame-pointer
AM_CFLAGS += -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs

if USE_SLANG
CPPFLAGS_slang = -DUSE_SLANG
LDFLAGS_slang = -lslang
endif
if USE_NCURSES
CPPFLAGS_ncurses = -DUSE_NCURSES
LDFLAGS_ncurses = -lncurses
endif

bin_PROGRAMS = demo
demo_SOURCES = demo.c

demo_CPPFLAGS = -I../libee $(CPPFLAGS_slang) $(CPPFLAGS_ncurses)
demo_CPPFLAGS = -I../libee
demo_LDADD = ../libee/libee.a $(LDFLAGS_slang) $(LDFLAGS_ncurses) -lm


Chargement…
Annuler
Enregistrer