CPP

targets=libcpp
cppflags_force=-I../../include
cppflags=
cflags_force=`pkg-config --cflags libSystem` -fPIC
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libSystem`
ldflags=
dist=Makefile,common.h,parser.h
#modes
[mode::debug]
[mode::release]
cppflags_force=-I../../include -DNDEBUG
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
#targets
[libcpp]
type=library
sources=cpp.c,parser.c,scanner.c
install=$(LIBDIR)
#sources
[cpp.c]
depends=common.h,../../include/CPP.h
[parser.c]
depends=parser.h,../../include/CPP.h
[scanner.c]
depends=common.h,../../include/CPP.h