version 1.1, 2000/10/29 17:45:34 |
version 1.3, 2005/08/04 10:00:26 |
|
|
# compiler environment : |
# compiler environment : |
|
|
|
OpenXM_HOME=../../../OpenXM |
CC=gcc |
CC=gcc |
BIND=gnatbl |
BIND=gnatbl |
PHCLIB=../Ada |
PHCLIB=../Ada |
Line 15 GNATFLAGS = -gnatv -O3 -gnatp |
|
Line 16 GNATFLAGS = -gnatv -O3 -gnatp |
|
.c.o: |
.c.o: |
$(CC) -c $(CFLAGS) $< |
$(CC) -c $(CFLAGS) $< |
|
|
|
all: phc |
|
|
|
install: |
|
cp -pf tmp/phc ${OpenXM_HOME}/bin/phc |
|
strip ${OpenXM_HOME}/bin/phc |
|
|
# Test program to see if compiler works, "hello world" : |
# Test program to see if compiler works, "hello world" : |
|
|
hello: |
hello: |
|
|
gnatbl -o /tmp/use_phc use_phc.ali |
gnatbl -o /tmp/use_phc use_phc.ali |
|
|
phc: |
phc: |
|
mkdir tmp |
gnatmake -c $(INCLULIBS) $(GNATFLAGS) dispatch.adb |
gnatmake -c $(INCLULIBS) $(GNATFLAGS) dispatch.adb |
gnatbl -o /tmp/phc dispatch.ali |
gnatbl -o ./tmp/phc dispatch.ali |
|
|
# Test programs for the evaluators : |
# Test programs for the evaluators : |
|
|
|
|
# cleaning up the object files : |
# cleaning up the object files : |
|
|
clean: force |
clean: force |
/bin/rm -f *.o *.ali |
/bin/rm -rf *.o *.ali tmp |
|
|
force: |
force: |