Skip to content

Commit

Permalink
minor makefile updates and one LFLAGS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sarnold committed Dec 9, 2015
1 parent 5eb1b06 commit fac4f6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion cccc/posixgcc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# support for debugging
ifeq "$(DEBUG)" "true"
DEBUG_FLAGS = -g
DEBUG_LFLAGS = -Wl,$(DEBUG_FLAGS)
else
DEBUG_LFLAGS =
endif

PATHSEP=/
Expand All @@ -27,7 +30,7 @@ CCC ?= g++
INCLUDES = -I../pccts/h
CCC_OPTS = -c $(CFLAGS) $(DEBUG_FLAGS) $(INCLUDES) -std=c++98 -x c++
C_OFLAG = -o
LD_OPTS = $(LDFLAGS) -Wl,$(DEBUG_FLAGS)
LD_OPTS = $(LDFLAGS) $(DEBUG_LFLAGS)
LD_OFLAG = -o
OBJEXT = o
CCCC_EXE = cccc
Expand Down
6 changes: 3 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ GENSRC = cccc/CLexer.cpp \
all : mini cccc test

mini :
cd pccts && $(MAKE) DEBUG=$(DEBUG) -Orecurse antlr dlg || exit $$?
$(MAKE) DEBUG=$(DEBUG) -C pccts -Orecurse antlr dlg || exit $$?

pccts :
cd pccts && $(MAKE) DEBUG=$(DEBUG) -Orecurse $@ || exit $$?
$(MAKE) DEBUG=$(DEBUG) -C pccts -Orecurse $@ || exit $$?

cccc : mini
cd cccc && $(MAKE) DEBUG=$(DEBUG) -Orecurse -f posixgcc.mak $@ || exit $$?
$(MAKE) DEBUG=$(DEBUG) -C cccc -f posixgcc.mak $@ || exit $$?

.NOTPARALLEL: cccc test
test :
Expand Down

0 comments on commit fac4f6e

Please sign in to comment.