home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-05-11 | 1.3 KB | 61 lines |
- # Makefile for shar 3.49 (tested with dmake 3.8) 8 May 1993
- #
- # - for GNU gcc (emx kit) under OS/2 2.0 (32-bit)
- # - for Microsoft C 6.00 under OS/2 (16-bit)
-
- # To use, enter "{d,n}make -f makefile.os2" (this makefile depends on its
- # name being "makefile.os2").
-
- default:
- @echo Enter "$(MAKE) -f makefile.os2 emx"
- @echo or "$(MAKE) -f makefile.os2 msc"
-
- emx:
- $(MAKE) -f makefile.os2 all \
- CC="gcc -Zomf -Zmt" O=".obj" \
- CFLAGS="-DUSE_GNU_GETOPT -DOS2 -DEMX" \
- LDFLAGS="" \
- LDFLAGS2="shar-emx.def" \
- OBJS2=""
-
- msc:
- $(MAKE) -f makefile.os2 all \
- CC="cl -AS -W3" O=".obj" \
- CFLAGS="-D__STDC__ -DUSE_GNU_GETOPT -DOS2 -DMSC -UMSDOS" \
- LDFLAGS="-Lp -AS -F 4000" \
- LDFLAGS2="setargv.obj shar.def -link /NOE" \
- OBJS2="getopt.obj" \
- OBJS3="director.obj"
-
- BINDIR = /bin
-
- VERSION = 3.49
- INSTALL = cp -v
-
- CMDS = shar.exe unshar.exe
- SRCS = uushar.c unshar.c shar.c
-
- all: $(CMDS)
-
- .c$O:
- $(CC) $(CFLAGS) -c $<
-
- # director.c from Stewartson's sh; needed for MSC version only
- director$O : director.c
- $(CC) $(CFLAGS) -DMSDOS -c $<
-
- unshar.exe : unshar$O $(OBJS2)
- $(CC) $(LDFLAGS) -o $@ $< $(LDFLAGS2)
-
- shar.exe : shar$O $(OBJS2) $(OBJS3)
- $(CC) $(LDFLAGS) -o $@ $< $(LDFLAGS2)
-
- install: $(CMDS)
- $(INSTALL) $(CMDS) $(BINDIR)
-
- tags: $(SRCS)
- etags $^
-
- clean:
- rm -f *$O *.tar
-