2015-02-08 01:52:26 +00:00
|
|
|
|
|
|
|
USE_CLANG = 1
|
|
|
|
|
|
|
|
ifdef USE_CLANG
|
|
|
|
CC = clang++
|
|
|
|
CFLAGS = -std=c++1y -stdlib=libc++ -g
|
|
|
|
else
|
2015-02-09 22:12:59 +00:00
|
|
|
CC = g++
|
2015-02-08 01:52:26 +00:00
|
|
|
CFLAGS = -std=c++1y -g
|
|
|
|
endif
|
|
|
|
|
2015-02-22 04:19:54 +00:00
|
|
|
all: calc calc2 calc3
|
2015-02-08 01:52:26 +00:00
|
|
|
|
|
|
|
calc : calc.cc ../peglib.h
|
|
|
|
$(CC) -o calc $(CFLAGS) -I.. calc.cc
|
|
|
|
|
|
|
|
calc2 : calc2.cc ../peglib.h
|
|
|
|
$(CC) -o calc2 $(CFLAGS) -I.. calc2.cc
|
2015-02-22 04:19:54 +00:00
|
|
|
|
|
|
|
calc3 : calc3.cc ../peglib.h
|
|
|
|
$(CC) -o calc3 $(CFLAGS) -I.. calc3.cc
|
2015-07-30 21:26:06 +00:00
|
|
|
|
|
|
|
pl0 : pl0.cc ../peglib.h
|
|
|
|
$(CC) -o pl0 $(CFLAGS) -I.. pl0.cc
|