| 1 |
CFLAGS = -Wall -s -Wstrict-prototypes |
| 2 |
LIBS = -lm |
| 3 |
CC = gcc |
| 4 |
RM = rm |
| 5 |
|
| 6 |
#SRC = |
| 7 |
|
| 8 |
PROGS = acme |
| 9 |
#BINDIR = /usr/local/bin |
| 10 |
#USERBIN = $(HOME)/bin |
| 11 |
OBJS = 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 |
| 12 |
|
| 13 |
all: $(PROGS) |
| 14 |
|
| 15 |
acme: $(OBJS) |
| 16 |
$(CC) $(CFLAGS) -o acme.out $(OBJS) $(LIBS) |
| 17 |
copy /b \djgpp\bin\pmodstub.exe + acme.out acmepmod.exe |
| 18 |
djp acme.exe |
| 19 |
djp acmepmod.exe |
| 20 |
|
| 21 |
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 acme.c |
| 22 |
|
| 23 |
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 |
| 24 |
|
| 25 |
cliargs.o: cliargs.h cliargs.c |
| 26 |
|
| 27 |
cpu.o: config.h dynabuf.h global.h mnemo.h tree.h cpu.h cpu.c |
| 28 |
|
| 29 |
dynabuf.o: config.h global.h input.h dynabuf.h dynabuf.c |
| 30 |
|
| 31 |
encoding.o: encoding.h encoding.c |
| 32 |
|
| 33 |
flow.o: config.h alu.h dynabuf.h global.h input.h mnemo.h symbol.h tree.h flow.h flow.c |
| 34 |
|
| 35 |
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 |
| 36 |
|
| 37 |
input.o: config.h alu.h dynabuf.h global.h section.h symbol.h tree.h input.h input.c |
| 38 |
|
| 39 |
macro.o: config.h alu.h dynabuf.h global.h input.h section.h symbol.h tree.h macro.h macro.c |
| 40 |
|
| 41 |
mnemo.o: config.h alu.h cpu.h dynabuf.h global.h input.h output.h tree.h mnemo.h mnemo.c |
| 42 |
|
| 43 |
output.o: config.h cpu.h global.h output.h output.c |
| 44 |
|
| 45 |
platform.o: config.h platform.h platform.c |
| 46 |
|
| 47 |
pseudoopcodes.o: alu.h flow.h global.h input.h macro.h output.h symbol.h pseudoopcodes.h pseudoopcodes.c |
| 48 |
|
| 49 |
section.o: config.h dynabuf.h global.h symbol.h tree.h section.h section.c |
| 50 |
|
| 51 |
symbol.o: config.h alu.h cpu.h dynabuf.h global.h input.h section.h tree.h symbol.h symbol.c |
| 52 |
|
| 53 |
tree.o: config.h dynabuf.h global.h symbol.h tree.h tree.c |
| 54 |
|
| 55 |
typesystem.o: config.h global.h typesystem.h typesystem.c |
| 56 |
|
| 57 |
clean: |
| 58 |
del *.o |
| 59 |
# -$(RM) -f *.o $(PROGS) *~ core |
| 60 |
|
| 61 |
#install: all |
| 62 |
# install -d $(BINDIR) |
| 63 |
# install $(PROGS) $(BINDIR) |
| 64 |
|
| 65 |
#userinstall: all |
| 66 |
# install -d $(USERBIN) |
| 67 |
# install $(PROGS) $(USERBIN) |
| 68 |
|
| 69 |
# DO NOT DELETE |