| 1 |
# Makefile for Alan interpreter to be built with CygWin |
| 2 |
|
| 3 |
#CYGWIN = -DCOMPILER=\"[MinGWb20]\" -mno-cygwin -I/cygnus/mingw/include -L/cygnus/mingw/lib |
| 4 |
#CYGWIN = -DCOMPILER=\"[MinGWb20]\" -mno-cygwin |
| 5 |
CYGWIN = -DCOMPILER=\"[CygWin32]\" |
| 6 |
|
| 7 |
# Define this to make interpreter log each crc calculation step |
| 8 |
#CRCLOG = -DCRCLOG |
| 9 |
|
| 10 |
CFLAGS = -g -Wall -funsigned-char $(CYGWIN) $(CRCLOG) |
| 11 |
|
| 12 |
LDFLAGS = -g $(CYGWIN) $(VERBOSE) |
| 13 |
LIB = ../../Glk/WinGlk/Glk.lib |
| 14 |
|
| 15 |
OBJECTS = arun.o \ |
| 16 |
main.o \ |
| 17 |
debug.o \ |
| 18 |
args.o \ |
| 19 |
exe.o \ |
| 20 |
inter.o \ |
| 21 |
parse.o \ |
| 22 |
rules.o \ |
| 23 |
stack.o \ |
| 24 |
decode.o \ |
| 25 |
term.o \ |
| 26 |
reverse.o \ |
| 27 |
readline.o \ |
| 28 |
params.o \ |
| 29 |
sysdep.o \ |
| 30 |
alan.version.o |
| 31 |
|
| 32 |
|
| 33 |
arun.exe : $(OBJECTS) |
| 34 |
gcc -o arun.exe $(OBJECTS) $(LDFLAGS) $(LIB) |
| 35 |
cp arun.exe ../bin |
| 36 |
|
| 37 |
dumpacd: dumpacd.o reverse.o spa.o |
| 38 |
$(CC) -o dumpacd $(CFLAGS) dumpacd.o reverse.o spa.o |
| 39 |
|
| 40 |
spa.o: spa.c spa.h |
| 41 |
gcc $(CFLAGS) -DSTDIONONCONST -c spa.c -o spa.o |
| 42 |
|
| 43 |
|
| 44 |
strip: |
| 45 |
strip arun |
| 46 |
coff2exe arun |
| 47 |
|
| 48 |
alan.version.c : ../alan.version.c alan.version.h |
| 49 |
cp ../alan.version.c . |
| 50 |
|
| 51 |
alan.version.h : ../alan.version.h version.h |
| 52 |
cp ../alan.version.h . |
| 53 |
|
| 54 |
version.h : ../version.h |
| 55 |
cp ../version.h . |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
#---<< GENERATED DEPENDENCIES FOLLOWS >>--- |
| 60 |
args.o: args.c args.h main.h types.h sysdep.h acode.h |
| 61 |
arun.o: arun.c main.h types.h sysdep.h acode.h term.h version.h args.h |
| 62 |
chartest.o: chartest.c |
| 63 |
debug.o: debug.c types.h sysdep.h acode.h version.h readline.h inter.h \ |
| 64 |
main.h parse.h exe.h debug.h |
| 65 |
decode.o: decode.c main.h types.h sysdep.h acode.h decode.h |
| 66 |
dumpacd.o: dumpacd.c types.h sysdep.h acode.h spa.h |
| 67 |
exe.o: exe.c types.h sysdep.h acode.h readline.h main.h parse.h \ |
| 68 |
inter.h stack.h decode.h exe.h |
| 69 |
genalan.o: genalan.c spa.h |
| 70 |
inter.o: inter.c types.h sysdep.h acode.h main.h parse.h exe.h stack.h \ |
| 71 |
inter.h |
| 72 |
main.o: main.c sysdep.h types.h acode.h main.h readline.h version.h \ |
| 73 |
args.h parse.h inter.h rules.h debug.h stack.h exe.h term.h |
| 74 |
params.o: params.c types.h sysdep.h acode.h params.h |
| 75 |
parse.o: parse.c types.h sysdep.h acode.h readline.h main.h inter.h \ |
| 76 |
exe.h term.h debug.h params.h parse.h |
| 77 |
readline.o: readline.c readline.h types.h sysdep.h acode.h main.h |
| 78 |
reverse.o: reverse.c types.h sysdep.h acode.h main.h reverse.h |
| 79 |
rules.o: rules.c types.h sysdep.h acode.h main.h inter.h debug.h exe.h \ |
| 80 |
stack.h rules.h |
| 81 |
spa.o: spa.c spa.h |
| 82 |
stack.o: stack.c types.h sysdep.h acode.h main.h stack.h |
| 83 |
sysdep.o: sysdep.c sysdep.h |
| 84 |
term.o: term.c main.h types.h sysdep.h acode.h term.h |
| 85 |
version.o: version.c version.h |