summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-24 15:39:58 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-24 15:39:58 -0800
commit1034ea7e8532da25cceb292469e8d90b6041ffab (patch)
tree5752b9e5b776450499b75e9afe0ccc550a9564a9 /Makefile
parentc9589217a057869582aa6a5ec1dbd048a525455e (diff)
downloadtxr-1034ea7e8532da25cceb292469e8d90b6041ffab.tar.gz
txr-1034ea7e8532da25cceb292469e8d90b6041ffab.tar.bz2
txr-1034ea7e8532da25cceb292469e8d90b6041ffab.zip
Auto-detect what specifiers to use for inline functions.
Allow compiler command to be set independently of full path for easier compiler switching.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1f9fe8e0..30ffaa3f 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@
-include config.make
CFLAGS := -I. -I$(top_srcdir) $(LANG_FLAGS) $(DIAG_FLAGS) \
- $(OPT_FLAGS) $(INLINE_FLAGS) $(DBG_FLAGS) $(PLATFORM_FLAGS)
+ $(OPT_FLAGS) $(DBG_FLAGS) $(PLATFORM_FLAGS)
CFLAGS := $(filter-out $(REMOVE_FLAGS),$(CFLAGS))
OBJS := txr.o lex.yy.o y.tab.o match.o lib.o regex.o gc.o unwind.o stream.o
@@ -110,8 +110,8 @@ config.make config.h:
conftest: conftest.c
$(CC) $(CFLAGS) -o $@ $^
-conftest.o: conftest.c
- $(CC) $(CFLAGS) -c -o $@ $^
+conftest2: conftest1.c conftest2.c
+ $(CC) $(CFLAGS) -o $@ $^
conftest.syms: conftest.o
$(NM) -t o -P $^ > $@