File: Makefile

package info (click to toggle)
mlton 20041109-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,212 kB
  • ctags: 58,085
  • sloc: ansic: 10,386; makefile: 1,178; sh: 1,139; pascal: 256; asm: 97
file content (21 lines) | stat: -rw-r--r-- 508 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: interpret.o interpret-gdb.o print-opcodes

CC = gcc -fomit-frame-pointer -I../runtime -I../include -Wall

interpret.o: interpret.c interpret.h opcode.h
	$(CC) -c -O2 interpret.c

interpret-gdb.o: interpret.c interpret.h
	$(CC) -c -o $@ -gstabs+ -g2 -DASSERT=1 interpret.c

print-opcodes: print-opcodes.c opcode.h
	$(CC) -o print-opcodes -I../runtime -L../runtime	\
		print-opcodes.c -lmlton

.PHONY: clean
clean:
	../bin/clean

.PHONY: exp
exp:
	gcc -E -I../runtime -I../include interpret.c >/tmp/z.exp