home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / intuition / makefile < prev    next >
Encoding:
Makefile  |  1997-02-07  |  1.8 KB  |  87 lines

  1. # $Id: makefile,v 1.30 1997/02/07 14:32:22 digulla Exp $
  2. TOP=../..
  3.  
  4. SPECIAL_CFLAGS = -I/usr/include
  5.  
  6. include $(TOP)/config/make.cfg
  7.  
  8. FILES = intuition_init intuition_functable gadgets \
  9.     boolgadgets propgadgets boopsigadgets \
  10.     imageclass frameiclass icclass buttongclass gadgetclass
  11. FUNCTIONS = \
  12.     activatewindow \
  13.     addclass \
  14.     autorequest \
  15.     beginrefresh \
  16.     clearmenustrip \
  17.     closescreen \
  18.     closewindow \
  19.     disposeobject \
  20.     dogadgetmethoda \
  21.     drawborder \
  22.     drawimage \
  23.     drawimagestate \
  24.     easyrequestargs \
  25.     endrefresh \
  26.     eraseimage \
  27.     freeclass \
  28.     freescreendrawinfo \
  29.     getattr \
  30.     getdefaultpubscreen \
  31.     getscreendata \
  32.     getscreendrawinfo \
  33.     lockibase \
  34.     lockpubscreen \
  35.     makeclass \
  36.     modifyidcmp \
  37.     modifyprop \
  38.     newmodifyprop \
  39.     newobjecta \
  40.     obtaingirport \
  41.     openscreen \
  42.     openscreentaglist \
  43.     openwindow \
  44.     openwindowtaglist \
  45.     pointinimage \
  46.     printitext \
  47.     refreshgadgets \
  48.     refreshglist \
  49.     refreshwindowframe \
  50.     releasegirport \
  51.     removeclass \
  52.     setattrsa \
  53.     setdefaultpubscreen \
  54.     setwindowtitles \
  55.     sizewindow \
  56.     unlockibase \
  57.     unlockpubscreen \
  58.     windowtoback \
  59.     windowtofront
  60.  
  61. all: setup \
  62.     $(foreach f,$(FILES) $(FUNCTIONS),$(OSGENDIR)/$(f).o)
  63.  
  64. setup :
  65.     @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
  66.  
  67. clean:
  68.     $(RM) $(OSGENDIR) *.err
  69.  
  70. $(OSGENDIR)/%.o: %.c
  71.     $(CC) $(SHARED_CFLAGS)  $(CFLAGS) $< -c -o $@ 2>&1|tee $*.err
  72.     @if test ! -s $*.err; then rm $*.err ; else true ; fi
  73.  
  74. intuition_functable.c : $(foreach f,$(FUNCTIONS),$(f).c) \
  75.         $(TOP)/scripts/makefunctable.awk
  76.     gawk -f $(TOP)/scripts/makefunctable.awk \
  77.         --assign lib=Intuition \
  78.         $^
  79.  
  80. $(OSGENDIR)/%.d: %.c
  81.     @if [ ! -d $(@D) ]; then $(MKDIR) $(@D) ; else true ; fi
  82.     $(MKDEPEND) -f- -p$(@D)/ -- $(CFLAGS) -- $^ > $@
  83.  
  84. ifneq ($(TARGET),clean)
  85. include $(foreach f,$(FILES) $(FUNCTIONS),$(OSGENDIR)/$(f).d)
  86. endif
  87.