Debian Codegraph @

src/Makefile.mingw

raw
1 #
2 # makefile for MingW
3 #
4
5 CFLAGS = -O3 -Wall -Wstrict-prototypes
6 LIBS = -lm
7 CC = gcc
8 RM = rm
9
10 #SRC =
11
12 PROGS = acme.exe
13 BINDIR = /usr/local/bin
14 USERBIN = $(HOME)/bin
15
16 all: $(PROGS)
17
18 acme.exe: acme.o alu.o cliargs.o cpu.o dynabuf.o encoding.o flow.o global.o input.o macro.o mnemo.o output.o platform.o pseudoopcodes.o section.o symbol.o tree.o typesystem.o resource.res
19 $(CC) $(LIBS) $(CFLAGS) -o acme acme.o alu.o cliargs.o cpu.o dynabuf.o encoding.o flow.o global.o input.o macro.o mnemo.o output.o platform.o pseudoopcodes.o section.o symbol.o tree.o typesystem.o resource.res
20 strip acme.exe
21
22
23
24 acme.o: config.h platform.h alu.h cpu.h dynabuf.h encoding.h flow.h global.h input.h macro.h mnemo.h output.h pseudoopcodes.h section.h symbol.h version.h acme.h _dos.h acme.c
25
26 alu.o: config.h platform.h cpu.h dynabuf.h encoding.h global.h input.h section.h symbol.h tree.h alu.h alu.c
27
28 cliargs.o: cliargs.h cliargs.c
29
30 cpu.o: config.h dynabuf.h global.h mnemo.h tree.h cpu.h cpu.c
31
32 dynabuf.o: config.h global.h input.h dynabuf.h dynabuf.c
33
34 encoding.o: encoding.h encoding.c
35
36 flow.o: config.h alu.h dynabuf.h global.h input.h mnemo.h symbol.h tree.h flow.h flow.c
37
38 global.o: config.h platform.h acme.h cpu.h dynabuf.h encoding.h input.h macro.h pseudoopcodes.h section.h symbol.h global.h global.c
39
40 input.o: config.h alu.h dynabuf.h global.h section.h symbol.h tree.h input.h input.c
41
42 macro.o: config.h alu.h dynabuf.h global.h input.h section.h symbol.h tree.h macro.h macro.c
43
44 mnemo.o: config.h alu.h cpu.h dynabuf.h global.h input.h output.h tree.h mnemo.h mnemo.c
45
46 output.o: config.h cpu.h global.h output.h output.c
47
48 platform.o: config.h platform.h platform.c
49
50 pseudoopcodes.o: alu.h flow.h global.h input.h macro.h output.h symbol.h pseudoopcodes.h pseudoopcodes.c
51
52 section.o: config.h dynabuf.h global.h symbol.h tree.h section.h section.c
53
54 symbol.o: config.h alu.h cpu.h dynabuf.h global.h input.h section.h tree.h symbol.h symbol.c
55
56 tree.o: config.h dynabuf.h global.h symbol.h tree.h tree.c
57
58 typesystem.o: config.h global.h typesystem.h typesystem.c
59
60 # _dos.o: _dos.h
61
62 win/resource.rc: acme.c
63 cd win; sh setRelease.sh
64
65 resource.res: win/resource.rc win/logo.ico
66 cd win; windres resource.rc -O coff -o ../resource.res
67 cp -f win/logo.ico .
68
69 clean:
70 -$(RM) -f *.o $(PROGS) *~ core resource.res logo.ico win/resource.rc
71
72
73 install: all
74 install -d $(BINDIR)
75 install $(PROGS) $(BINDIR)
76
77 userinstall: all
78 install -d $(USERBIN)
79 install $(PROGS) $(USERBIN)
80
81 # DO NOT DELETE