Files
cparse/Makefile
Vinícius Garcia a412190cbe Rename builtin-operations.cpp to builtin-features.cpp (#43)
The reason for this change is just because the name `features`
fits a lot better the meaning of this file.

Also this change should be done now, as early as possible
while we still have few users.
2016-11-08 11:57:59 -02:00

27 lines
739 B
Makefile

EXE = test-shunting-yard
CORE_SRC = shunting-yard.cpp packToken.cpp functions.cpp objects.cpp
SRC = $(EXE).cpp $(CORE_SRC) builtin-features.cpp catch.cpp
OBJ = $(SRC:.cpp=.o)
LD ?= ld
CXX ?= g++
CFLAGS = -std=c++11 -Wall -pedantic
DEBUG = -g #-DDEBUG
all: $(EXE) release
$(EXE): $(OBJ); $(CXX) $(CFLAGS) $(DEBUG) $(OBJ) -o $(EXE)
%.o: %.cpp *.h; $(CXX) $(CFLAGS) $(DEBUG) -c $< -o $@ $(DEBUG)
release: $(CORE_SRC) builtin-features.cpp;
$(CXX) -c -O3 $(CFLAGS) $(CORE_SRC) builtin-features.cpp
$(LD) -r -O1 $(CORE_SRC:.cpp=.o) -o core-shunting-yard.o
again: clean all
test: $(EXE); ./$(EXE) $(args)
check: $(EXE); valgrind --leak-check=full ./$(EXE) $(args)
clean: ; rm -f $(EXE) $(OBJ) core-shunting-yard.o full-shunting-yard.o