home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / clib / progs / cutils / GMakefile < prev    next >
Encoding:
Makefile  |  1991-10-20  |  1.7 KB  |  66 lines

  1. # Makefile for system utilities (For Gnu Make)
  2.  
  3. # Where to install them: BIN for object library, HDR for headers
  4. BIN = $$.Lib
  5. HDR = $$.CLib
  6.  
  7. # Objects to create
  8. BASE =    O.Alloca O.Bag O.Bitset O.Chdir O.Coroutines O.Deque O.Dir    \
  9.     O.Dirscan O.Efopen O.Emalloc O.Fcrypt O.Filelen O.Filetime    \
  10.     O.Filetype O.Filter O.Frename O.Getwd O.Isatty O.Map O.Message    \
  11.     O.Mktemp O.Oscmd O.Panic O.Popen O.Queue O.Random O.Ring     \
  12.     O.Set O.Stack O.Stat O.Strcchr O.Strdup O.Strlcmp O.Strlower    \
  13.     O.Strndup O.Strnlcmp O.Strnpcpy O.Strnucmp O.Strpcpy        \
  14.     O.Strucmp O.Strupper O.Swi O.Time O.Touch O.Unexec
  15.  
  16. OTHER =    O.Getopt O.Getopt1 O.Regex O.Caller O.ProgLimit    O.Vars \
  17.     O.ProfileAsm O.ProfileC O.ProfileT
  18.  
  19. OBJS = $(BASE) $(OTHER)
  20.  
  21. # Assembler command for source in directory S.
  22. O.%: S.%
  23.     $(ASM) $(ASMFLAGS) -from $< -to $@ -stamp -quit
  24.  
  25. .PHONY: all install clean clobber
  26.  
  27. all: Utils
  28.  
  29. install: Utils
  30.     Copy H.* $(HDR).H.* FQ~C~V
  31.     Copy Sys.H.* $(HDR).Sys.H.* FQ~C~V
  32.     Copy Getopt.H.Getopt $(HDR).H.Getopt FQ~C~V
  33.     Copy Regex.H.Regex $(HDR).H.Regex FQ~C~V
  34.     Copy Profile.H.Profile $(HDR).H.Profile FQ~C~V
  35.     Copy Utils $(BIN).Utils FQ~C~V
  36.  
  37. clean:
  38.     Wipe O.* F~C~V
  39.  
  40. clobber: clean
  41.     Remove Utils
  42.  
  43. Utils: $(OBJS)
  44.     Remove Utils
  45.     Libfile -c -o Utils O.*
  46.  
  47. # Profiler, Regex and Getopt libraries live in subdirectories
  48.  
  49. O.Getopt: Getopt.C.Getopt
  50.     $(CC) $(CFLAGS) -c Getopt.C.Getopt
  51.  
  52. O.Getopt1: Getopt.C.Getopt1
  53.     $(CC) $(CFLAGS) -c Getopt.C.Getopt1
  54.  
  55. O.Regex: Regex.C.Regex
  56.     $(CC) $(CFLAGS) -c Regex.C.Regex
  57.  
  58. O.ProfileC: Profile.C.ProfileC
  59.     $(CC) $(CFLAGS) -c Profile.C.ProfileC
  60.  
  61. O.ProfileT: Profile.C.ProfileT
  62.     $(CC) $(CFLAGS) -c Profile.C.ProfileT
  63.  
  64. O.ProfileAsm: Profile.S.ProfileAsm
  65.     $(ASM) $(ASMFLAGS) -from Profile.S.ProfileAsm -to O.ProfileAsm -stamp -quit
  66.