home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / unixtools / util / makefile < prev    next >
Encoding:
Makefile  |  1992-07-21  |  967 b   |  37 lines

  1. # Makefile for system utilities
  2.  
  3. # Where to install them: BIN for object library, HDR for headers
  4. BIN = adfs::HardDisc4.$$.Lib
  5. HDR = adfs::HardDisc4.$$.CLib
  6.  
  7. # Objects to create
  8. OBJS = O.Alloca O.Bag O.Bitset O.Chdir O.Deque O.Dir O.Dirscan O.Efopen \
  9.        O.Emalloc O.Fatal O.Filelen O.Filetime O.Filetype O.Getopt O.Getwd \
  10.        O.Map O.Message O.Mktemp O.Popen O.Queue O.Random O.Ring O.Set \
  11.        O.Stack O.Stat O.Strcchr O.Strdup O.Strlcmp O.Strlower O.Strndup \
  12.        O.Strnlcmp O.Strnpcpy O.Strpcpy O.Strupper O.Time O.Touch O.Regex \
  13.        O.Caller O.ProgLimit
  14.  
  15. .PHONY: all obj install clean
  16.  
  17. all: $(OBJS)
  18.     Libfile Utils -c -f O.*
  19.     Objlib Utils -c
  20.  
  21. obj: $(OBJS)
  22.  
  23. install: all
  24.     Copy H.* $(HDR).H.* FQ~C~V
  25.     Copy Sys.H.* $(HDR).Sys.H.* FQ~C~V
  26.     Copy Regex.H.Regex $(HDR).H.Regex FQ~C~V
  27.     Copy Utils $(BIN).Utils FQ~C~V
  28.  
  29. clean:
  30.     Wipe O.* F~C~V
  31.     Remove Utils
  32.  
  33. # Regex library lives in a subdirectory
  34.  
  35. O.Regex: Regex.C.Regex
  36.     $(CC) $(CFLAGS) -c Regex.C.Regex
  37.