2014-05-04 05:20:34 +00:00
|
|
|
.SUFFIXES: .o .c .h .run
|
|
|
|
|
2016-01-24 08:00:20 +00:00
|
|
|
OBJECTS = builtins.o debugPrint.o errorStuff.o expr.o globals.o initialize.o\
|
2014-05-04 05:20:34 +00:00
|
|
|
instantiate.o link.o main.o map.o poke.o read.o relocate.o slinkyTables.o\
|
|
|
|
write.o
|
|
|
|
|
2016-01-24 08:00:20 +00:00
|
|
|
SOURCES = builtins.c debugPrint.c errorStuff.c expr.c globals.c initialize.c\
|
2014-05-04 05:20:34 +00:00
|
|
|
instantiate.c link.c main.c map.c poke.c read.c relocate.c slinkyTables.c\
|
|
|
|
write.c slinkyExpressions.h slinkyGlobals.h slinkyTypes.h y.tab.h
|
|
|
|
|
2016-01-24 08:04:00 +00:00
|
|
|
CFLAGS= -m32 # slinky is not 64 bit clean
|
2014-05-04 05:47:33 +00:00
|
|
|
|
2014-05-04 05:20:34 +00:00
|
|
|
.c.o:
|
2016-01-24 08:00:20 +00:00
|
|
|
cc $(CFLAGS) -c $*.c
|
2014-05-04 05:20:34 +00:00
|
|
|
|
|
|
|
.c.run:
|
2014-05-04 05:47:33 +00:00
|
|
|
cc $(CFLAGS) -o $* $*.c
|
2014-05-04 05:20:34 +00:00
|
|
|
|
|
|
|
slinky: $(OBJECTS)
|
2014-05-04 05:47:33 +00:00
|
|
|
cc $(CFLAGS) -g -o slinky $(OBJECTS)
|
2014-05-04 05:20:34 +00:00
|
|
|
|
|
|
|
builtins.o: builtins.c slinkyGlobals.h slinkyTypes.h slinkyExpressions.h
|
|
|
|
|
|
|
|
debugPrint.o: debugPrint.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
|
|
|
errorStuff.o: errorStuff.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
|
|
|
expr.o: expr.c slinkyExpressions.h slinkyGlobals.h slinkyTypes.h y.tab.h
|
|
|
|
|
|
|
|
initialize.o: initialize.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
|
|
|
instantiate.o: instantiate.c slinkyGlobals.h slinkyTypes.h slinkyExpressions.h
|
|
|
|
|
|
|
|
link.o: link.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
|
|
|
main.o: main.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
|
|
|
map.o: map.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
|
|
|
poke.o: poke.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
|
|
|
read.o: read.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
|
|
|
relocate.o: relocate.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
|
|
|
slinkyTables.o: slinkyTables.c slinkyTypes.h
|
|
|
|
|
|
|
|
write.o: write.c slinkyGlobals.h slinkyTypes.h
|
|
|
|
|
2016-01-24 06:53:59 +00:00
|
|
|
clean:
|
2014-05-04 05:20:34 +00:00
|
|
|
/bin/rm -f *.o slinky
|
|
|
|
|
|
|
|
love:
|
|
|
|
@echo "Not war?"
|
|
|
|
|