home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 18
/
aminetcdnumber181997.iso
/
Aminet
/
misc
/
emu
/
gbuk.lha
/
src
/
MAKEFILE.AMI
< prev
next >
Wrap
Text File
|
1997-02-08
|
2KB
|
73 lines
.PHONY : all
.PHONY : clean
# System configuration
SHELL = gnu:bin/sh
# System environment
# Where all the object files go
DEST = Amiga/obj/
# The root of the code directory
ROOT = program:version/src
CC = g++
CODEGEN = -m68020
OPTIMIZATION = -O3
OPTIONS = -lobjc -fcse-skip-blocks -frerun-cse-after-loop -fno-peephole
CFLAGS = $(CODEGEN) $(OPTIMIZATION) $(OPTIONS) -idirafter $(ROOT)
LIB = -lGB_amiga
OBJ = $(DEST)Amiga2.o $(DEST)Amiga1.o \
$(DEST)savegame.o $(DEST)Prefs.o $(DEST)ReadVars.o \
$(DEST)options.o $(DEST)font.o $(DEST)gfxfunc.o \
$(DEST)Picture.o $(DEST)MAIN.o $(DEST)Z80.o \
$(DEST)GB.o $(DEST)SYSTEM.o
ARCHIVE =
main: $(OBJ)
$(CC) $(CFLAGS) -o $@ $^ $(ARCHIVE) $(LIB)
all: clean main
$(DEST)Amiga2.o: Amiga/Amiga2.c
$(CC) $(CFLAGS) $(INCL) -c Amiga/Amiga2.c -o $@
$(DEST)Amiga1.o: Amiga/Amiga1.c
$(CC) $(CFLAGS) $(INCL) -c Amiga/Amiga1.c -o $@
$(DEST)savegame.o: savegame.c
$(CC) $(CFLAGS) $(INCL) -c savegame.c -o $@
$(DEST)Prefs.o: Prefs.c
$(CC) $(CFLAGS) $(INCL) -c Prefs.c -o $@
$(DEST)ReadVars.o: ReadVars.c
$(CC) $(CFLAGS) $(INCL) -c ReadVars.c -o $@
$(DEST)options.o: options.c
$(CC) $(CFLAGS) $(INCL) -c options.c -o $@
$(DEST)font.o:
$(CC) $(CFLAGS) $(INCL) -c font.c -o $@
$(DEST)gfxfunc.o: Amiga/gfxfunc.c
$(CC) $(CFLAGS) $(INCL) -c Amiga/gfxfunc.c -o $@
$(DEST)Picture.o: Picture.c
$(CC) $(CFLAGS) $(INCL) -c Picture.c -o $@
$(DEST)MAIN.o: MAIN.C
$(CC) $(CFLAGS) $(INCL) -c MAIN.C -o $@
$(DEST)Z80.o: Z80.c
$(CC) $(CFLAGS) $(INCL) -c Z80.c -o $@
$(DEST)GB.o: GB.c
$(CC) $(CFLAGS) $(INCL) -c GB.c -o $@
$(DEST)SYSTEM.o: SYSTEM.C
$(CC) $(CFLAGS) $(INCL) -c SYSTEM.C -o $@
clean:
delete amiga/obj/#?
#END OF FILE#