home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-10-01 | 928 b | 47 lines |
- # Makefile for unzipbsd
-
-
- # "make unzip" -- makes unzip in current directory
- # "make install" -- makes unzip, then moves it into DESTDIR defined below
- # "make clean" -- deletes object files and executable unzip from current dir
- # "make shar" -- make a SHell ARchive
- # "make arc" -- make a DOS archive
-
- # Directory where we want to move executable unzip on "make install"
- DESTDIR=/usr/public
-
- # CFLAGS are flags for the C compiler. LDFLAGS are flags for the loader.
- CFLAGS= -O
- # This is used for DBX
- #CFLAGS= -g
-
- LDFLAGS= -s
-
- CC=cc
-
- .c.o:
- $(CC) -c $(CFLAGS) $*.c
-
- SRCS = unzipbsd.c crc32.c patchlevel.h
- OBJS = unzipbsd.o crc32.o
-
- unzip: $(OBJS)
- cc $(LDFLAGS) -o unzip $(OBJS)
-
- unzip.o: unzip.c
-
- crc32.o: crc32.c
-
- install: unzip
- mv unzip $(DESTDIR)/unzip
-
- clean:
- /bin/rm -f $(OBJS) core unzip
-
- shar:
- @shar -a Makefile $(SRCS) unzip.doc > unzipbsd.shar
-
- arc:
- @arc -a unzipbsd.arc Makefile $(SRCS) unzip.doc
-
-