home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-11-22 | 2.4 KB | 123 lines |
- #########################################################################
- #
- # Makefile for Lattice C on the Amiga
- #
- # $Id: Makefile.Amiga,v 1.3 1991/10/30 08:35:24 glewis Exp glewis $
- #
- #########################################################################
-
- #
- # Rules:
- #
- CC = lc:lc
-
- .c.o:
- $(CC) $(CFLAGS) $*
-
- .DEFAULT:
-
- #
- # Lattice C compile options:
- #
- # -b0 : 32 bit addressing
- # -fi : ieee math
- # -f8 : Inline M68881 math
- # -m3 : Code optimized for 68030
- # -cw : No warning for missing return in int functions
- #
- LCFLAGS = -cw -b0 -fi
-
- # Other options:
- #
- # -d3 : Debug on
- # -O : Optimize
- #
- OPT = -d3
-
- #
- # Machine specific defines:
- #
- MACH = -DAMIGA
-
- #
- # Other defines:
- #
- DEFS =
-
-
- CFLAGS = $(LCFLAGS) $(OPT) $(MACH) $(DEFS)
-
- #
- # Installation directory for binaries:
- #
-
- OBJS=read.o write.o readtddd.o writeray.o writemif.o writeps.o \
- writeoff.o writenff.o writevort.o sort.o
- LIB=ttddd.lib
-
- all: test tddd2ray tddd2ps tddd2mif tddd2vort tddd2off tddd2nff
-
-
- $(LIB): $(OBJS)
- oml $(LIB) r $(OBJS)
-
- test: test.o $(LIB)
- BLINK FROM lib:c.o test.o \
- TO test \
- LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
-
- tddd2ray: tddd2ray.o $(LIB)
- BLINK FROM lib:c.o tddd2ray.o \
- TO tddd2ray \
- LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
-
- tddd2ps: tddd2ps.o $(LIB)
- BLINK FROM lib:c.o tddd2ps.o \
- TO tddd2ps \
- LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
-
- tddd2mif: tddd2mif.o $(LIB)
- BLINK FROM lib:c.o tddd2mif.o \
- TO tddd2mif \
- LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
-
- tddd2off: tddd2off.o $(LIB)
- BLINK FROM lib:c.o tddd2off.o \
- TO tddd2off \
- LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
-
- tddd2nff: tddd2nff.o $(LIB)
- BLINK FROM lib:c.o tddd2nff.o \
- TO tddd2nff \
- LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
-
- tddd2vort: tddd2vort.o $(LIB)
- BLINK FROM lib:c.o tddd2vort.o \
- TO tddd2vort \
- LIB $(LIB) lib:lcmieee.lib lib:lc.lib lib:amiga.lib
-
-
- # $(OBJS): ttdddlib.h
- # lmk doesn't understand the above rule, so we have to spell it out!
- #
- read.o: read.c ttdddlib.h
- write.o: write.c ttdddlib.h
- readtddd.o: readtddd.c ttdddlib.h
- writeray.o: writeray.c ttdddlib.h
- writevort.o: writevort.c ttdddlib.h
- writeoff.o: writeoff.c ttdddlib.h
- writenff.o: writenff.c ttdddlib.h
- writeps.o: writeps.c ttdddlib.h
- writemif.o: writemif.c ttdddlib.h
- sort.o: sort.c ttdddlib.h
-
- clean:
- delete #?.o
- delete $(LIB)
- delete test
- delete tddd2ray
- delete tddd2ps
- delete tddd2mif
- delete tddd2vort
-
-