mirror of
https://github.com/allankoechke/cparse.git
synced 2026-12-02 09:19:14 +00:00
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.
27 lines
739 B
Makefile
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
|