1# 2# Makefile for use with Lattice C 3# 4STARTUP=LIB:c.o 5DEBUG = -O 6LINKDBG = ND 7# 8# Use these settings on a standard Amiga. 9# If you have a version of Lattice C earlier than 5.10, replace the -ba 10# switch with -b0, and link with lcnb.lib instead of lc.lib. 11# 12# CFLAGS = -ma -v -fi -cs -ba $(DEBUG) 13# MATHLIB = LIB:lcmieee.lib 14# 15# use these settings on an Amiga with a 68020 16# 17CFLAGS = -m2 -v -f8 -cs -ba $(DEBUG) 18MATHLIB = LIB:lcm881.lib 19# 20# if you have getopt and qsort in a library, declare it in SUPLIB 21# 22SUPLIB = LIB:unix.lib 23SUPPORT = mktemp.o 24# 25# else declare SUPLIB as empty, and add the appropriate .o files in SUPPORT 26# (alloca.o is only needed if you use the GNU getopt) 27# 28# SUPLIB = 29# SUPPORT = mktemp.o qsort.o getopt.o alloca.o 30# 31# Override certain library functions with home-made, smaller ones. Their only 32# purpose is to make executables smaller, so you don't really need them. If you 33# have something equivalent, declare it here. GDEF is for getami, and SDEF is 34# for show3. 35# 36GDEF = DEFINE __main=__nowbmain 37SDEF = DEFINE __main=__nowbmain 38# 39# ".o" files and libraries required to build getami 40# 41GOBJ = getami.o AdjustScreen.o $(SUPPORT) 42GLIBS = LIB:rle.lib $(MATHLIB) $(SUPLIB) LIB:lc.lib 43# 44# ".o" files and libraries required to build show3. 45# 46SOBJ = show3.o CenterScreen.o 47SLIBS = $(SUPLIB) LIB:lc.lib 48 49all: getami show3 50 51getami: $(GOBJ) 52 blink FROM $(STARTUP) $(GOBJ) TO getami SC SD $(LINKDBG) $(GDEF) LIB $(GLIBS) 53 54show3: $(SOBJ) 55 blink FROM $(STARTUP) $(SOBJ) TO show3 SC SD $(LINKDBG) $(SDEF) LIB $(SLIBS) 56 57clean: 58 delete \#?.o getami show3 QUIET 59