home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-seriously_amiga-
/
misc
/
posbb
/
src
/
makefile
< prev
next >
Wrap
Makefile
|
1998-05-09
|
1KB
|
28 lines
# usage:
# $ make <target> [CC=..|CCFLAGS=..|LDFLAGS=..|OUTNAME=..]
# <target> can be generic,amigaos,or all
# CC is the compiler,default GCC
# CCFLAGS are the compiler's flags,default -O3
# LDFLAGS are the linker's fòags,default -noixemul -lm -s
# OUTNAME is the name of the executable you'll obtain,default posbb
CC = gcc
CCFLAGS = -O3
LDFLAGS = -noixemul -lm -s
OUTNAME = posbb
all: ../bin/generic/$(OUTNAME) ../bin/amigaos/$(OUTNAME)
generic: ../bin/generic/$(OUTNAME)
amigaos: ../bin/amigaos/$(OUTNAME)
../bin/generic/$(OUTNAME) : generic/main.c generic/perform_tests.c generic/mem.c generic/math.c generic/io.c
$(CC) $(CCFLAGS) generic/main.c generic/perform_tests.c generic/mem.c generic/math.c generic/io.c -o ../bin/generic/$(OUTNAME) $(LDFLAGS)
../bin/amigaos/$(OUTNAME) : amigaos/main.c amigaos/perform_tests.c amigaos/mem.c amigaos/math.c amigaos/io.c amigaos/gfx.c
$(CC) $(CCFLAGS) amigaos/main.c amigaos/perform_tests.c amigaos/mem.c amigaos/math.c amigaos/io.c amigaos/gfx.c -o ../bin/amigaos/$(OUTNAME) $(LDFLAGS)