home *** CD-ROM | disk | FTP | other *** search
Makefile | 2000-11-02 | 2.3 KB | 89 lines |
-
- SHELL = /bin/sh
-
- ##############################################################################
-
- TARGET = PPC
- CODETYPE = PPC
- VERSION = 0
-
- ##############################################################################
-
- G_IPATH = -I../../emulinclude/includestd/ -I../../include/
- G_DEFINES = -D$(CODETYPE)
- G_OPTFLAGS = -O2 \
- -fomit-frame-pointer \
- -fverbose-asm \
- -mstrict-align \
- -mno-prototype \
- -mcpu=604e \
- -mregnames \
- -Wformat \
- -Wunused \
- -Wuninitialized \
- -Wconversion \
- -Wstrict-prototypes \
- -Werror-implicit-function-declaration
-
- G_OPTFLAGS = -O2 -funroll-loops -mcpu=604e -mstrict-align -Wall -I. -I../emulinclude/includegcc/ -I../include/ -I../emulinclude/includestd/ -mmultiple
-
-
- APATH = -iinclude/
- AFLAGS = -M4000
-
- ##############################################################################
-
- all: test.elf
-
- ##############################################################################
-
- .SUFFIXES: .o$(TARGET) .asm
-
- .c.o$(TARGET):
- ppc-amigaos-gcc $(G_CFLAGS) $(G_OPTFLAGS) $(G_DEBUG) $(G_DEFINES) $(G_IPATH) -S -o $*.s $*.c
- ppc-amigaos-as -v -o$*.o$(TARGET) $*.s
-
- .s.o$(TARGET):
- ppc-amigaos-as -o$*.o$(TARGET) $*.s
-
-
- .asm.o$(TARGET):
- basm $(AFLAGS) $(APATH) -o$*.o$(TARGET) $*.asm
-
- ##############################################################################
- ##############################################################################
- ##############################################################################
- ##############################################################################
- ##############################################################################
- ##############################################################################
- ##############################################################################
- #
- # amiga Emulation
- #
-
- LIB = ../../lib/
-
- SRC =
-
- GLOBAL =
-
- test.o$(TARGET): test.c $(GLOBAL)
-
- OBJS = test.o$(TARGET)
-
-
- #####################################################################
- #
- # Link Project
- #
-
- test.elf: $(OBJS)
- ppc-amigaos-ld -v -L$(LIB) -r $(LIB)startup.o $(LIB)__nocommandline.o $(OBJS) -o test.elf -lsyscall -lc -lm
- protect test.elf +e
-
- DUMP:
- ppc-amigaos-objdump --section-headers --all-headers --reloc --disassemble-all test.elf >test.elf.dump
-
- ##############################################################################
- .PHONY: all
-