home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-12-08 | 872 b | 49 lines |
- #
- # Makefile for MAKEPCX
- #
- # Can be made in both WIMP and COMMAND LINE flavours.
- #
- # You'll need C$Libroot and C$Path set up
- #
- # D.Pead 1991
-
- # Both versions
-
- .SUFFIXES: .o .c
-
- HEADERS = h.makepcx h.palettes
- LIBS = c:o.risc_oslib c:o.ansilib
-
- .c.o:; cc -c -o $@ $<
-
- both : !runimage makepcx
-
- # Runimage for WIMP version
-
- !runimage : o.pcxwimp o.makepcx
- link -o !RunImage o.pcxwimp o.makepcx $(LIBS)
- squeeze !RunImage
-
- # Command line version
-
- makepcx : o.pcxcli o.makepcx o.getopt o.alloca
- link -o makepcx o.pcxcli o.makepcx o.getopt o.alloca $(LIBS)
- squeeze makepcx
-
- # Objects
-
- o.pcxwimp : c.pcxwimp $(HEADERS)
-
- o.pcxcli : c.pcxcli $(HEADERS) h.getopt
-
- o.makepcx : c.makepcx $(HEADERS)
-
- # GNU GETOPT and ALLOCA routines used by command line version
-
- o.getopt : c.getopt
- cc -pcc -c -w -DUSG -Dindex=strchr c.getopt
-
- o.alloca : c.alloca
- cc -pcc -c -w -DUSG c.alloca
-
-