Print this page
6648 illumos build should be explicit about C standards


  49 POFILES3=$(TABFILES)
  50 TEXT_DOMAIN2=SUNW_OST_ZONEINFO
  51 MSGDOMAIN2=$(MSGROOT)/$(TEXT_DOMAIN2)
  52 
  53 # NB: $(POFILE2) is under SCM.
  54 CLOBBERFILES += $(POFILE) $(POFILE3)
  55 
  56 .KEEP_STATE:
  57 
  58 all: $(PROG) $(NPROG) $(KSHPROG)
  59 
  60 $(PROG): $(OBJS)
  61         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  62         $(POST_PROCESS)
  63 
  64 install: all $(DIRS) $(ROOTTZSRCD) $(ROOTTZTABD) $(ROOTUSRSBINPROG) \
  65                 $(ROOTLIBTZSRCFILES) $(ROOTLIBTZTABFILES) $(ROOTKSHPROG)
  66         $(NPROG) -d $(ROOTTZD) $(TZFILES)
  67 
  68 $(NPROG): $(NATIVE) $(NOBJS)
  69         $(NATIVECC) -o $@ $(NOBJS)
  70 
  71 #
  72 # XXX
  73 # There is a .ksh rule in Makefile.targ, but we need our custom POFILE rules.
  74 #
  75 $(KSHPROG):     $(KSHPROG).ksh
  76         $(RM) $@
  77         $(CAT) $(KSHPROG).ksh > $@
  78         $(CHMOD) +x $@
  79 
  80 $(ROOTTZSRCD)/%: %
  81         $(INS.file)
  82 
  83 $(ROOTTZTABD)/%: %
  84         $(INS.file)
  85 
  86 $(DIRS):
  87         $(INS.dir)
  88 
  89 $(NATIVE):
  90         -@mkdir -p $@
  91 
  92 clean:
  93         $(RM) $(OBJS)
  94 
  95 lint: lint_SRCS
  96 
  97 $(NOBJS): $$(@F:.o=.c)
  98         $(NATIVECC) -O $(NCPPFLAGS) -c -o $@ $(@F:.o=.c)
  99 
 100 $(NATIVE)/zic.o: $(NATIVE)/tzfile.h
 101 
 102 #$(NATIVE)/scheck.o: scheck.c
 103 #       $(NATIVECC) -c -o $@ scheck.c
 104 
 105 #$(NATIVE)/ialloc.o: ialloc.c
 106 #       $(NATIVECC) -c -o $@ ialloc.c
 107 
 108 $(NATIVE)/tzfile.h: $(ROOT)/usr/include/tzfile.h
 109         $(RM) $@; cp $(ROOT)/usr/include/tzfile.h $@
 110 
 111 #
 112 # From ../Makefile.targ
 113 #
 114 clobber: clean
 115         -$(RM) $(PROG) $(CLOBBERFILES)
 116 
 117 lint_PROG:
 118         $(LINT.c) $(PROG).c $(LDLIBS)
 119 
 120 lint_SRCS:
 121         $(LINT.c) $(SRCS) $(LDLIBS)
 122 
 123 #
 124 # For message catalogue files
 125 #
 126 _msg: $(MSGDOMAIN) $(POFILE) $(POFILE2) $(MSGDOMAIN2) $(POFILE3)
 127         $(RM) $(MSGDOMAIN)/$(POFILE)


  49 POFILES3=$(TABFILES)
  50 TEXT_DOMAIN2=SUNW_OST_ZONEINFO
  51 MSGDOMAIN2=$(MSGROOT)/$(TEXT_DOMAIN2)
  52 
  53 # NB: $(POFILE2) is under SCM.
  54 CLOBBERFILES += $(POFILE) $(POFILE3)
  55 
  56 .KEEP_STATE:
  57 
  58 all: $(PROG) $(NPROG) $(KSHPROG)
  59 
  60 $(PROG): $(OBJS)
  61         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  62         $(POST_PROCESS)
  63 
  64 install: all $(DIRS) $(ROOTTZSRCD) $(ROOTTZTABD) $(ROOTUSRSBINPROG) \
  65                 $(ROOTLIBTZSRCFILES) $(ROOTLIBTZTABFILES) $(ROOTKSHPROG)
  66         $(NPROG) -d $(ROOTTZD) $(TZFILES)
  67 
  68 $(NPROG): $(NATIVE) $(NOBJS)
  69         $(NATIVECC) $(NATIVE_CFLAGS) -o $@ $(NOBJS)
  70 
  71 #
  72 # XXX
  73 # There is a .ksh rule in Makefile.targ, but we need our custom POFILE rules.
  74 #
  75 $(KSHPROG):     $(KSHPROG).ksh
  76         $(RM) $@
  77         $(CAT) $(KSHPROG).ksh > $@
  78         $(CHMOD) +x $@
  79 
  80 $(ROOTTZSRCD)/%: %
  81         $(INS.file)
  82 
  83 $(ROOTTZTABD)/%: %
  84         $(INS.file)
  85 
  86 $(DIRS):
  87         $(INS.dir)
  88 
  89 $(NATIVE):
  90         -@mkdir -p $@
  91 
  92 clean:
  93         $(RM) $(OBJS)
  94 
  95 lint: lint_SRCS
  96 
  97 $(NOBJS): $$(@F:.o=.c)
  98         $(NATIVECC) -O $(NATIVE_CFLAGS) $(NCPPFLAGS) -c -o $@ $(@F:.o=.c)
  99 
 100 $(NATIVE)/zic.o: $(NATIVE)/tzfile.h
 101 






 102 $(NATIVE)/tzfile.h: $(ROOT)/usr/include/tzfile.h
 103         $(RM) $@; cp $(ROOT)/usr/include/tzfile.h $@
 104 
 105 #
 106 # From ../Makefile.targ
 107 #
 108 clobber: clean
 109         -$(RM) $(PROG) $(CLOBBERFILES)
 110 
 111 lint_PROG:
 112         $(LINT.c) $(PROG).c $(LDLIBS)
 113 
 114 lint_SRCS:
 115         $(LINT.c) $(SRCS) $(LDLIBS)
 116 
 117 #
 118 # For message catalogue files
 119 #
 120 _msg: $(MSGDOMAIN) $(POFILE) $(POFILE2) $(MSGDOMAIN2) $(POFILE3)
 121         $(RM) $(MSGDOMAIN)/$(POFILE)