home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-10-12 | 1.8 KB | 63 lines |
- # Makefile for UnZip 5.1+ using Manx Aztec C 5.2b 12 October 1992
- #
- # May need to change directory names for stat.c and utime.c.
-
- # This makefile does not yet have a means of creating a version optimized for
- # 32 bit CPUs, nor does the Lattice lmkfile. Release 4.0 included such a
- # version but 4.1 did not.
-
- #####################
- # MACRO DEFINITIONS #
- #####################
-
- CC = cc
- CFLAGS = -d AMIGA -ps -sabfmnpu -wcr0u
- # -ps means short ints, -s... is optimizations, -w... controls type checking
- LD = ln
- LDFLAGS = +q -o $@
- LDFLAGS2 = -lc16
- EXE =
- O = .o
- OBJS = unzip$O crypt$O envargs$O explode$O extract$O file_io$O inflate$O\
- mapname$O match$O misc$O unreduce$O unshrink$O utime$O stat$O
-
- IOBS = zipinfo$O envargs$O match$O misc$O stat$O
-
- ###############################################
- # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
- ###############################################
-
- .c$O :
- $(CC) -o $@ $(CFLAGS) $*.c
-
- unzip$(EXE) : $(OBJS)
- $(LD) $(LDFLAGS) $(OBJS) $(LDFLAGS2)
-
- zipinfo$(EXE) : $(IOBS)
- $(LD) $(LDFLAGS) $(IOBS) $(LDFLAGS2)
-
- crypt$O: crypt.c unzip.h zip.h crypt.h
- envargs$O: envargs.c unzip.h
- explode$O: explode.c unzip.h
- extract$O: extract.c unzip.h crypt.h
- file_io$O: file_io.c unzip.h crypt.h
- inflate$O: inflate.c unzip.h
- mapname$O: mapname.c unzip.h
- match$O: match.c unzip.h
- misc$O: misc.c unzip.h
- unreduce$O: unreduce.c unzip.h
- unshrink$O: unshrink.c unzip.h
- unzip$O: unzip.c unzip.h crypt.h
- utime$O: amiga/utime.c # may need to change or remove directory name
- stat$O: amiga/stat.c # may need to change or remove directory name
- zipinfo$O: unzip.h
-
- # my lame make version doesn't want to make stat.o and utime.o from the rule:
-
- stat.o : amiga/stat.c
- $(CC) -o $@ $(CFLAGS) $*.c
-
- utime.o : amiga/utime.c
- $(CC) -o $@ $(CFLAGS) $*.c
-
-