diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-12-07 09:36:40 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-12-07 09:36:40 -0800 |
commit | 0517b7d93b4d707fea1a2e154977ba813f38f1ad (patch) | |
tree | 5904f88c7686b66baf1bbd81449d8e26562d6319 /Makefile | |
parent | 462024f5d4cd7bc2c134eb732eabaea6f3bafc1e (diff) | |
download | txr-0517b7d93b4d707fea1a2e154977ba813f38f1ad.tar.gz txr-0517b7d93b4d707fea1a2e154977ba813f38f1ad.tar.bz2 txr-0517b7d93b4d707fea1a2e154977ba813f38f1ad.zip |
Debug builds optional with --debug-also config option.
* Makefile (PROG): Variable removed, now set in config.make.
(all): Target now depends on $(BUILD_TARGETS) variable, set
in config.make.
* configure (debug_also) New variable.
(gen_config_make): Generate PROG and BUILD_TARGETS variables.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -60,7 +60,6 @@ OBJS += $(MPI_OBJS) DBG_OBJS = $(call ADD_CONF,dbg,$(OBJS) $(OBJS-y)) OPT_OBJS = $(call ADD_CONF,opt,$(OBJS) $(OBJS-y)) -PROG := txr TXR := ./$(PROG) .SUFFIXES: @@ -77,7 +76,7 @@ opt/%.o: %.c %.o: %.c $(CC) $(OPT_FLAGS) $(CFLAGS) -c -o $@ $< -all: $(PROG) $(PROG)-dbg +all: $(BUILD_TARGETS) $(PROG): $(OPT_OBJS) $(CC) $(OPT_FLAGS) $(CFLAGS) -o $@ $^ -lm |