2014-11-22 01:36:02 +00:00
|
|
|
CFLAGS = -Wall -s -Wstrict-prototypes
|
2012-02-27 21:14:46 +00:00
|
|
|
LIBS = -lm
|
|
|
|
CC = gcc
|
|
|
|
RM = rm
|
|
|
|
|
|
|
|
#SRC =
|
|
|
|
|
|
|
|
PROGS = acme
|
|
|
|
#BINDIR = /usr/local/bin
|
|
|
|
#USERBIN = $(HOME)/bin
|
2014-12-03 22:18:06 +00:00
|
|
|
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
|
2012-02-27 21:14:46 +00:00
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
2012-02-28 11:58:45 +00:00
|
|
|
acme: $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o acme.out $(OBJS) $(LIBS)
|
2012-02-27 21:14:46 +00:00
|
|
|
copy /b \djgpp\bin\pmodstub.exe + acme.out acmepmod.exe
|
|
|
|
djp acme.exe
|
|
|
|
djp acmepmod.exe
|
|
|
|
|
2014-12-03 22:18:06 +00:00
|
|
|
acme.o: config.h platform.h acme.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 acme.h acme.c
|
2012-02-27 21:14:46 +00:00
|
|
|
|
2014-06-07 00:12:10 +00:00
|
|
|
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
|
2012-02-27 21:14:46 +00:00
|
|
|
|
|
|
|
cliargs.o: cliargs.h cliargs.c
|
|
|
|
|
|
|
|
cpu.o: config.h alu.h dynabuf.h global.h input.h mnemo.h output.h tree.h cpu.h cpu.c
|
|
|
|
|
|
|
|
dynabuf.o: config.h acme.h global.h input.h dynabuf.h dynabuf.c
|
|
|
|
|
|
|
|
encoding.o: config.h alu.h acme.h dynabuf.h global.h output.h input.h tree.h encoding.h encoding.c
|
|
|
|
|
2014-12-04 15:31:54 +00:00
|
|
|
flow.o: config.h acme.h alu.h dynabuf.h global.h input.h mnemo.h symbol.h tree.h flow.h flow.c
|
2012-02-27 21:14:46 +00:00
|
|
|
|
2014-12-03 22:18:06 +00:00
|
|
|
global.o: config.h platform.h acme.h cpu.h input.h macro.h pseudoopcodes.h section.h symbol.h global.h global.c
|
2012-02-27 21:14:46 +00:00
|
|
|
|
2014-12-03 22:18:06 +00:00
|
|
|
input.o: config.h alu.h dynabuf.h global.h section.h tree.h input.h input.c
|
2012-02-27 21:14:46 +00:00
|
|
|
|
2014-06-07 00:12:10 +00:00
|
|
|
macro.o: config.h acme.h alu.h dynabuf.h global.h input.h section.h symbol.h tree.h macro.h macro.c
|
2012-02-27 21:14:46 +00:00
|
|
|
|
|
|
|
mnemo.o: config.h alu.h cpu.h dynabuf.h global.h input.h output.h tree.h mnemo.h mnemo.c
|
|
|
|
|
|
|
|
output.o: config.h acme.h alu.h cpu.h dynabuf.h global.h input.h tree.h output.h output.c
|
|
|
|
|
|
|
|
platform.o: config.h platform.h platform.c
|
|
|
|
|
2014-12-04 15:31:54 +00:00
|
|
|
pseudoopcodes.o: acme.h alu.h input.h macro.h output.h pseudoopcodes.h pseudoopcodes.c
|
2014-12-03 22:18:06 +00:00
|
|
|
|
2012-02-27 21:14:46 +00:00
|
|
|
section.o: config.h dynabuf.h global.h section.h tree.h section.h section.c
|
|
|
|
|
2014-12-03 22:18:06 +00:00
|
|
|
symbol.o: config.h acme.h alu.h cpu.h dynabuf.h global.h input.h section.h tree.h symbol.h symbol.c
|
2014-06-07 00:12:10 +00:00
|
|
|
|
|
|
|
tree.o: config.h dynabuf.h global.h symbol.h tree.h tree.c
|
2012-02-27 21:14:46 +00:00
|
|
|
|
2014-06-02 00:47:46 +00:00
|
|
|
typesystem.o: config.h global.h typesystem.h typesystem.c
|
|
|
|
|
2012-02-27 21:14:46 +00:00
|
|
|
clean:
|
|
|
|
del *.o
|
|
|
|
# -$(RM) -f *.o $(PROGS) *~ core
|
|
|
|
|
|
|
|
#install: all
|
|
|
|
# install -d $(BINDIR)
|
|
|
|
# install $(PROGS) $(BINDIR)
|
|
|
|
|
|
|
|
#userinstall: all
|
|
|
|
# install -d $(USERBIN)
|
|
|
|
# install $(PROGS) $(USERBIN)
|
|
|
|
|
|
|
|
# DO NOT DELETE
|