home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
messroms.de
/
2007-01-13_www.messroms.de.zip
/
VZ200
/
TOOLS
/
ZCCSRC.ZIP
/
Makefile
< prev
next >
Wrap
Makefile
|
2000-03-03
|
1KB
|
56 lines
# DJGPP
CC= gcc
CFLAGS= -g -O3 -fomit-frame-pointer -I. $(DEBUG) -Wall
DEBUG=
O= .o
E= .exe
BAK= .bak
LIB= lib
BIN= exe
OUT= -o ../$@
MFLAGS= CC=$(CC) CFLAGS='$(CFLAGS)' DEBUG='$(DEBUG)' O=$(O) OUT='$(OUT)'
RM= rm
# Unix (untested)
#CC= cc
#CFLAGS= -O -I. $(DEBUG) -Wall
#DEBUG=
#O= .o
#E=
#BAK= .*~
#LIB= lib
#BIN= /usr/local/bin
#OUT= -o ../$@
#MFLAGS= CC=$(CC) CFLAGS='$(CFLAGS)' DEBUG='$(DEBUG)' O=$(O) OUT='$(OUT)'
#RM= rm
.c$(O):
$(CC) $(CFLAGS) -c $<
all: $(BIN)/dcpp$(E) $(BIN)/sccz80$(E) $(BIN)/copt$(E) $(BIN)/asz80$(E) $(BIN)/aslink$(E) $(BIN)/zcc$(E) $(LIB)/0crt.rel
clean:
rm -rf */*$(E) *$(O) */*$(O) *$(BAK) *.opt *.rel *.map *.i
$(BIN)/dcpp$(E):
make -Cpp $(MFLAGS) dcpp
$(BIN)/sccz80$(E):
make -Cscc $(MFLAGS) sccz80
$(BIN)/copt$(E):
make -Cpho $(MFLAGS) copt
$(BIN)/asz80$(E):
make -Cas $(MFLAGS) asz80
$(BIN)/aslink$(E):
make -Clink $(MFLAGS) aslink
$(BIN)/zcc$(E):
make -Czcc $(MFLAGS) zcc
$(LIB)/0crt.rel:
$(BIN)/asz80 $(LIB)/0crt