home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!mcsun!news.funet.fi!polaris!sutela
- From: sutela@polaris.utu.fi (Kari Sutela)
- Subject: SAS/C 6.1 and GSTs (was Re: SAS 6.1 and IDIR problems
- Message-ID: <1992Dec16.145012.6828@polaris.utu.fi>
- Organization: University of Turku, Finland
- 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>
- Distribution: inet
- Date: Wed, 16 Dec 92 14:50:12 GMT
- Lines: 29
-
- jraja@vipunen.hut.fi (Jarno Tapio Rajahalme) writes:
-
- >What about adding _new_ include files to gst automagically? This would
- >ease up thing in the start phase of developing new code.
-
- Just use a Makefile (or smkfile). Gather all your include-directives
- in one file (or a set of files, if you prefer) --- let's call it
- whatever.h --- and #include this file in your source file(s)
- (whatever.c):
-
- # A sample Makefile
-
- PROJECT=whatever
- CFLAGS=GST $(PROJECT).gst
-
- $(PROJECT): $(PROJECT).o
- slink LIB:c.o $(PROJECT).o LIB LIB:sc.lib LIB:amiga.lib
-
- $(PROJECT).o: $(PROJECT).c $(POJECT).gst
-
- $(PROJECT).gst: $(PROJECT).h
- sc MAKEGST $(PROJECT).gst $(PROJECT).h
-
-
- Works perfectly (the Makefile was written now without any references,
- so there might be a few errors).
-
- --
- Kari Sutela sutela@utu.fi
-