home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17430 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.3 KB  |  41 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!mcsun!news.funet.fi!polaris!sutela
  3. From: sutela@polaris.utu.fi (Kari Sutela)
  4. Subject: SAS/C 6.1 and GSTs (was Re: SAS 6.1 and IDIR problems
  5. Message-ID: <1992Dec16.145012.6828@polaris.utu.fi>
  6. Organization: University of Turku, Finland
  7. References: <BynD5B.35w@srgenprp.sr.hp.com> <Bz3zDo.1Jx@unx.sas.com>     <S37732V.92Dec12145909@lk-hp-20.hut.fi> <Bz95w4.LI7@unx.sas.com> <JRAJA.92Dec15231111@vipunen.hut.fi>
  8. Distribution: inet
  9. Date: Wed, 16 Dec 92 14:50:12 GMT
  10. Lines: 29
  11.  
  12. jraja@vipunen.hut.fi (Jarno Tapio Rajahalme) writes:
  13.  
  14. >What about adding _new_ include files to gst automagically? This would
  15. >ease up thing in the start phase of developing new code.
  16.  
  17. Just use a Makefile (or smkfile).  Gather all your include-directives
  18. in one file (or a set of files, if you prefer) --- let's call it
  19. whatever.h --- and #include this file in your source file(s)
  20. (whatever.c):
  21.  
  22. # A sample Makefile
  23.  
  24. PROJECT=whatever
  25. CFLAGS=GST $(PROJECT).gst
  26.  
  27. $(PROJECT): $(PROJECT).o
  28.     slink LIB:c.o $(PROJECT).o LIB LIB:sc.lib LIB:amiga.lib
  29.  
  30. $(PROJECT).o: $(PROJECT).c $(POJECT).gst
  31.  
  32. $(PROJECT).gst: $(PROJECT).h
  33.     sc MAKEGST $(PROJECT).gst $(PROJECT).h
  34.  
  35.  
  36. Works perfectly (the Makefile was written now without any references,
  37. so there might be a few errors).
  38.  
  39. -- 
  40. Kari Sutela    sutela@utu.fi
  41.