home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / utils / Makefile.in < prev    next >
Makefile  |  1996-12-11  |  4KB  |  129 lines

  1. srcdir =    @srcdir@
  2. VPATH =        @srcdir@
  3.  
  4. prefix =    @prefix@
  5. exec_prefix =    @exec_prefix@
  6.  
  7. bindir =    $(exec_prefix)/bin
  8.  
  9. INSTALL =    @INSTALL@
  10. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  11. INSTALL_DATA =    @INSTALL_DATA@
  12.  
  13. SHELL =        /bin/sh
  14. CC =        @CC@
  15. AWK =        @AWK@
  16. RM =        rm
  17. DEFS =        @DEFS@
  18. LIBS =        @LIBS@
  19. CFLAGS =    @CFLAGS@
  20. LDFLAGS =    @LDFLAGS@
  21.  
  22. #### End system configuration section ####
  23.  
  24. INCLUDES =    -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../library -I$(srcdir)/../static -I.
  25. DEFS =          -DHAVE_STRERROR
  26. OUR_CFLAGS =    $(DEFS) $(INCLUDES) $(CFLAGS)
  27. OUR_LDFLAGS =    $(LDFLAGS) -B../libsrc/ -L../libsrc
  28.  
  29. DATABASES =    africa antarctica asia australasia europe northamerica southamerica \
  30.         pacificnew etcetera backward systemv solar87 solar88 solar89
  31.  
  32. IXPREFS_OBJ =    ixprefs.o main.o cli.o functions.o
  33.  
  34. TZDIR =     $(prefix)/etc/zoneinfo
  35.  
  36. # Taken from the tzcode95g.tar.gz Makefile:
  37. #
  38. # If you want something other than Eastern United States time as a template
  39. # for handling POSIX-style time zone environment variables,
  40. # change the line below (after finding the zone you want in the
  41. # time zone files, or adding it to a time zone file).
  42. # (When a POSIX-style environment variable is handled, the rules in the template
  43. # file are used to determine "spring forward" and "fall back" days and
  44. # times; the environment variable itself specifies GMT offsets of standard and
  45. # summer time.)
  46. # Alternately, if you discover you've got the wrong time zone, you can just
  47. #    zic -p rightzone
  48. # to correct things.
  49. # If you want POSIX compatibility, use "America/New_York".
  50.  
  51. POSIXRULES =    America/New_York
  52.  
  53. .c.o:
  54.         $(CC) -c $(OUR_CFLAGS) $<
  55.  
  56. all :        ixprefs ixtrace ixrun ixtimezone ixstack ixpipe-handler \
  57.         tzselect zoneinfo/GMT
  58.  
  59. ixprefs :    $(IXPREFS_OBJ) getopt.o getopt1.o
  60.         $(CC) $(OUR_LDFLAGS) -o $@ $^ -lauto
  61.  
  62. ixprefs.o:    ixprefs.c
  63.         sed -e '/clib/d' \
  64.             -e 's/pragmas/proto/' \
  65.             -e 's/_pragmas//' \
  66.             -e 's/    (TAG_DONE)/    (GTCB_Scaled), TRUE, (TAG_DONE)/' \
  67.             -e 's/OpenDiskFont/OpenFont/' \
  68.             -e 's/CreateMenus( ixprefsNewMenu, GTMN_FrontPen, 0L, TAG_DONE )/CreateMenusA( ixprefsNewMenu, NULL )/' \
  69.             -e 's/LayoutMenus( ixprefsMenus, VisualInfo, TAG_DONE )/LayoutMenus( ixprefsMenus, VisualInfo, GTMN_NewLookMenus, TRUE, TAG_DONE )/' \
  70.             -e 's/WA_PubScreenFallBack,    TRUE/WA_PubScreenFallBack,    TRUE, WA_NewLookMenus,    TRUE/' \
  71.             <$^ >tmp_ixprefs.c
  72.         $(CC) -c $(OUR_CFLAGS) -o $@ tmp_ixprefs.c
  73.         rm -f tmp_ixprefs.c
  74.  
  75. functions.o:    version.h ../library/ixemul.h
  76.  
  77. ixtrace :    ixtrace.o getopt.o
  78.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  79.  
  80. ixrun:        ixrun.o
  81.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  82.  
  83. ixstack:    ixstack.o
  84.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  85.  
  86. ixtimezone:    ixtimezone.o
  87.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  88.  
  89. ixpipe-handler:    ixpipe-handler.o
  90.         $(CC) -nostdlib -o $@ $? -lc
  91.  
  92. zic:        zic.o ialloc.o scheck.o getopt.o
  93.         $(CC) -o $@ $^ $(LIBS)
  94.  
  95. tzselect:    tzselect.ksh
  96.         sed \
  97.             -e 's|AWK=[^}]*|AWK=$(AWK)|g' \
  98.             -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
  99.             <$? >$@
  100.         chmod +x $@
  101.  
  102. yearistype:    yearistype.sh
  103.         rm -f $@
  104.         cp $^ $@
  105.         chmod +x $@
  106.  
  107. zoneinfo/GMT:    zic yearistype
  108.         rm -rf zoneinfo
  109.         mkdir zoneinfo
  110.         rootme=`pwd` ; cd $(srcdir)/databases ; \
  111.         $$rootme/zic -d $$rootme/zoneinfo -y "sh $$rootme/yearistype" -p $(POSIXRULES) $(DATABASES)
  112.  
  113. version.h:    ../library/parse_version.c ../version.in
  114.         gcc -o parse_version $<
  115.         ./parse_version $(srcdir) >$@
  116.         rm -f parse_version
  117.  
  118. #
  119. #    Clean up the local directory.
  120. #
  121.  
  122. clean :
  123.         rm -f *.o ixtrace ixprefs ixrun ixtimezone ixstack tzselect
  124.         rm -f zic yearistype ixpipe-handler tmp_ixprefs.c
  125.         rm -rf zoneinfo
  126.  
  127. clobber :    clean
  128.         $(RM) -f Makefile version.h
  129.