Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 36366a866a
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (29 sloc) 0.842 kB
EXT =
all: c99conv$(EXT) c99wrap$(EXT)
OBJS = convert.o
CC=/opt/local/bin/clang-mp-3.2
LD=$(CC)
CFLAGS=-I/opt/local/libexec/llvm-3.2/include -g
LDFLAGS=-L/opt/local/libexec/llvm-3.2/lib -g
LIBS=-lclang
clean:
rm -f c99conv$(EXT) c99wrap$(EXT) $(OBJS) compilewrap.o
rm -f unit.c.c unit2.c.c
test1: c99conv$(EXT)
$(CC) -E unit.c -o unit.prev.c
./c99conv unit.prev.c unit.post.c
diff -u unit.{prev,post}.c || :
test2: c99conv$(EXT)
$(CC) -E unit2.c -o unit2.prev.c
./c99conv unit2.prev.c unit2.post.c
diff -u unit2.{prev,post}.c || :
test3: c99conv$(EXT)
$(CC) $(CFLAGS) -E -o convert.prev.c convert.c
./c99conv convert.prev.c convert.post.c
diff -u convert.{prev,post}.c
c99conv$(EXT): $(OBJS)
$(CC) -o $@ $< $(LDFLAGS) $(LIBS)
c99wrap$(EXT): compilewrap.o
$(CC) -o $@ $< $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
Jump to Line
Something went wrong with that request. Please try again.