Browse Source

Build libfaux with TESTC macro but tetsc binary without it

Serj Kalichev 4 years ago
parent
commit
7f95a7f9dd
2 changed files with 5 additions and 14 deletions
  1. 1 5
      Makefile.am
  2. 4 9
      faux/Makefile.am

+ 1 - 5
Makefile.am

@@ -11,11 +11,7 @@ if DEBUG
 DEBUG_CFLAGS = -DDEBUG
 endif
 
-if TESTC
-TESTC_CFLAGS = -DTESTC
-endif
-
-AM_CFLAGS = -Wall $(DEBUG_CFLAGS) $(TESTC_CFLAGS)
+AM_CFLAGS = -Wall $(DEBUG_CFLAGS)
 
 bin_PROGRAMS =
 lib_LTLIBRARIES =

+ 4 - 9
faux/Makefile.am

@@ -2,6 +2,10 @@ lib_LTLIBRARIES += libfaux.la
 libfaux_la_SOURCES =
 libfaux_la_LIBADD =
 
+if TESTC
+libfaux_la_CFLAGS = -DTESTC
+endif
+
 nobase_include_HEADERS += \
 	faux/faux.h \
 	faux/ctype.h \
@@ -13,10 +17,6 @@ nobase_include_HEADERS += \
 	faux/ini.h \
 	faux/file.h
 
-#	faux/argv.h \
-#	faux/dump.h \
-#	faux/system.h
-
 EXTRA_DIST += \
 	faux/base/Makefile.am \
 	faux/ctype/Makefile.am \
@@ -28,11 +28,6 @@ EXTRA_DIST += \
 	faux/ini/Makefile.am \
 	faux/file/Makefile.am
 
-#	faux/argv/Makefile.am \
-#	faux/dump/Makefile.am \
-#	faux/system/Makefile.am \
-#	faux/README
-
 include $(top_srcdir)/faux/base/Makefile.am
 include $(top_srcdir)/faux/ctype/Makefile.am
 include $(top_srcdir)/faux/str/Makefile.am