0
|
1 # dxa makefile
|
|
2 # marko's originally, hacked up by cameron
|
|
3
|
|
4 TARGET = dxa
|
|
5 OBJECTS = scan.o vector.o dump.o table.o label.o main.o
|
|
6 VERSION = 0.1.3
|
|
7
|
|
8 # choose the compiler and flags
|
|
9
|
|
10 CC = gcc
|
|
11 CFLAGS = -Wall -Wmissing-prototypes -O6
|
|
12 #CFLAGS = -Wall -Wmissing-prototypes -ggdb
|
|
13
|
|
14 #CC = cc
|
|
15 #CFLAGS = -O
|
|
16 #CFLAGS = -O2
|
|
17
|
|
18 all: $(TARGET)
|
|
19
|
|
20 $(TARGET) : $(OBJECTS)
|
|
21 $(CC) $(LDFLAGS) -o $@ $(OBJECTS)
|
|
22
|
|
23 scan.o : structures.h proto.h options.h opcodes.h
|
|
24 vector.o : structures.h proto.h options.h
|
|
25 dump.o : structures.h proto.h options.h opcodes.h
|
|
26 table.o : structures.h proto.h
|
|
27 label.o : structures.h proto.h
|
|
28 main.o : structures.h proto.h options.h opcodes.h
|
|
29
|
|
30 clean:
|
|
31 rm -f $(OBJECTS) $(TARGET) core
|
|
32
|
|
33 dist: clean
|
|
34 cd ..;tar cvf dxa-$(VERSION).tar dxa-$(VERSION);gzip dxa-$(VERSION).tar
|