home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
RiscOS
/
APP
/
DEVS
/
FORTH
/
BEETLE
/
BEETLE.ZIP
/
Beetle
/
Makefile
< prev
next >
Wrap
Makefile
|
1997-04-22
|
2KB
|
66 lines
# Makefile for C Beetle
# Reuben Thomas 11/94-31/3/97
# The next few lines are user modifiable
# The names of your C compiler and linker; here we assume it's GCC
CC = gcc
LD = gcc -o $@
# If your machine is big-endian, you should uncomment the next line
#ENDISM = -DBIG_ENDIAN
# Flags for the C compiler; the uncommented version of CCflags is recommended
# as the commented one is meant for development
# If you change CCflags, make sure it still ends in $(ENDISM)
# add -DB_DEBUG for debugging output
CFLAGS = -O3 $(ENDISM)
#CFLAGS = -pedantic-errors -Wall $(ENDISM)
# The rest of the file is not user-modifiable
BeetleObjs = storage.o tests.o step.o run.o lib.o debug.o loadobj.o saveobj.o
TestHeaders = beetle.h opcodes.h debug.h btests.h
BTests = aritmtit brancht comparet createt doloopt initialt libt literalt \
logict memoryt stackt stept runt loadobjt saveobjt exceptst linkt
BTestsO = aritmtit.o brancht.o comparet.o createt.o doloopt.o initialt.o \
libt.o literalt.o logict.o memoryt.o stackt.o stept.o runt.o \
loadobjt.o saveobjt.o exceptst.o linkt.o
# Targets
all: beetle uiface btests
beetle: beetle.o $(BeetleObjs)
$(LD) $@.o $(BeetleObjs)
beetle.o: $(TestHeaders)
btests: $(BTests)
$(BTests): $(BTestsO) $(BeetleObjs)
$(LD) $@.o $(BeetleObjs)
uiface: uiface.o $(BeetleObjs)
$(LD) $@.o $(BeetleObjs)
uiface.o: $(TestHeaders)
# Other dependencies
step.o: beetle.h opcodes.h execute.c excepts.c
run.o: beetle.h opcodes.h execute.c excepts.c
storage.o: beetle.h
debug.o: beetle.h opcodes.h debug.h
beetle.h: bportab.h
touch beetle.h
debug.h: beetle.h
touch debug.h