home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-09-02 | 1.1 KB | 63 lines |
- # -*-Fun-*-
-
- XCFLAGS=
-
- CC=cl
- MODEL=C
- CFLAGS=-A$(MODEL) $(GLOB_FLAG) $(XCFLAGS)
- FOBJ=fgrep.obj kwset.obj obstack.obj std.obj getopt.obj
-
- LDFLAGS=/NOE/ST:0xe000
-
- BINMODE=c:\msc\lib\binmode.obj
-
- # Uncomment and modify these if you want to use SETARGV.OBJ
- # GLOB_LIB=
- # LIBS=
- # SETARGV=c:\msc\lib\setargv.obj
- # GLOB_FLAG=
-
- # Uncomment these if you want to do GNU globbing of arguments
- GLOB_LIB=globargv.lib
- LIBS=$(GLOB_LIB)
- SETARGV=
- GLOB_FLAG=-DGNU_GLOBBING
-
-
- default: fgrep.exe
-
- fgrep.exe: $(FOBJ) $(GLOB_LIB)
- link $(LDFLAGS) $(FOBJ) $(SETARGV) $(BINMODE), $@, nul, $(LIBS);
-
- getopt.obj: getopt.c
- $(CC) $(CFLAGS) -DUSG -c getopt.c
-
-
- # Order is in general significant in GLOB_OBJ
- GLOB_OBJ=globargv.obj glob.obj msd_dir2.obj getwd.obj
-
- globargv.lib: $(GLOB_OBJ)
- rm -f $@
- lib $@ $(GLOB_OBJ), nul;
-
-
- # GNU rm
- RM=rm -fv
-
- cleanbackups:
- @$(RM) *.~ *.bak *.old
-
- clean: cleanbackups
- @$(RM) $(FOBJ)
- @$(RM) $(GLOB_OBJ) $(GLOB_LIB)
-
- clobber: clean
- @$(RM) fgrep.exe
-
-
- fgrep.obj: unix.h msdosmac.h
- kwset.obj fgrep.obj: kwset.h obstack.h std.h
- obstack.obj: obstack.h
- std.obj: std.h unix.h
- msd_dir2.obj glob.obj: msd_dir.h
-