home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
274.lha
/
SimGen_Src
/
makefile
< prev
next >
Wrap
Makefile
|
1989-07-26
|
1KB
|
85 lines
#
# Name of program.
#
PROGRAM = SimGen
#
# Copy command and backup or permanent destination (for compiling
# from ram: or vd0: this copies current files to disk.)
#
COPY = copy CLONE
BACKUP = work:
#
# 'C' compiler and global compiler flags.
#
CCOMPILER = cc
CFLAGS = -n +l -iinclude
#
# Assembler and global assembler flags.
#
ASSEMBLER = as
AFLAGS = -v -c -d
#
# Linker and global linker flags + libraries to like with.
#
LINKER = ln
LFLAGS = -g
LIBS = +q -lc32
#
# Rule for Assembly modules.
#
.asm.o:
$(ASSEMBLER) $(AFLAGS) $*.asm
$(COPY) $*.asm $(BACKUP)
$(COPY) $*.o $(BACKUP)
#
# Rule for 'C' modules.
#
.c.o:
$(CCOMPILER) $(CFLAGS) $*.c
$(COPY) $*.c $(BACKUP)
$(COPY) $*.o $(BACKUP)
#
# Rule to 'backup' new header files.
#
.h.ho:
echo >$*.ho "marked"
$(COPY) $*.h $(BACKUP)
$(COPY) $*.ho $(BACKUP)
#
# IFF Modules.
#
IFFDEP = IFFR.o UNPACKER.o MYILBMR.o CBMREADPICT.o IFFMSGS.o MYIFF2.o
#
# Program Modules.
#
PDEP = $(PROGRAM).o RECTCOPY.o WINDOW1.o MESSAGE.o
#
# Header files.
#
HDEP = PICTURE.ho RECTCOPY.ho SIZEDEFS.ho
#
# Dependency for program.
#
$(PROGRAM): $(PDEP) $(HDEP) $(IFFDEP)
$(LINKER) $(LFLAGS) $(PDEP) $(IFFDEP) $(LIBS)
$(COPY) makefile $(BACKUP)
$(COPY) $(PROGRAM) $(BACKUP)
#
# Special dependanceies
#
rectcopy.o: sizedefs.h
window1.o: sizedefs.h