Added gfcc2c to GF repo.

This commit is contained in:
bringert
2006-12-22 13:43:32 +00:00
parent 95d4af1f2d
commit da339b2686
20 changed files with 3000 additions and 0 deletions

19
lib/c/Makefile Normal file
View File

@@ -0,0 +1,19 @@
CC = gcc
CFLAGS += -O2 -W -Wall
.PHONY: all clean
all: libgfcc.a
libgfcc.a: gfcc-tree.o gfcc-term.o
ar r $@ $^
gfcc-tree.o: gfcc-tree.c gfcc-tree.h
$(CC) $(CFLAGS) -c -o $@ $<
gfcc-term.o: gfcc-term.c gfcc-term.h
$(CC) $(CFLAGS) -c -o $@ $<
clean:
-rm -f libgfcc.a
-rm -f *.o