cpp-peglib/example/Makefile

19 lines
283 B
Makefile
Raw Normal View History

2015-02-08 01:52:26 +00:00
USE_CLANG = 1
ifdef USE_CLANG
CC = clang++
CFLAGS = -std=c++1y -stdlib=libc++ -g
else
CC = g++-4.9
CFLAGS = -std=c++1y -g
endif
all: calc calc2
calc : calc.cc ../peglib.h
$(CC) -o calc $(CFLAGS) -I.. calc.cc
calc2 : calc2.cc ../peglib.h
$(CC) -o calc2 $(CFLAGS) -I.. calc2.cc