I have this in my user-startup:
Code:
; SAS/C assigns
assign sc: dh1:sc
assign include: sc:include
assign cxxinclude: sc:cxxinclude
assign lib: sc:lib
assign c: dh1:sc/c ADD
assign libs: dh1:sc/libs ADD
; end
sc: is the installations folder of SAS/C
in an smakefile you can put some definitions in like this:
Code:
UINC = /SDK/include/
ULIB = /SDK/lib/
CFLAGS = cpu=68020 math=68881 opt nostkchk idir=$(UINC) idir=cxxinclude:
blotchGUI.p: blotch.o gui_help.o
sc link $(CFLAGS) startup=$(ULIB)serv_s.o $(ULIB)server.lib \
blotch.o gui_help.o pname=$@
blotch.o:
sc $(CFLAGS) blotch.c
gui_help.o:
sc $(CFLAGS) gui_help.c
all: blotchGUI.p
clean:
delete \#?.o \#?.p
with smakefile in your source folder you start to build it with:
maybe you can try this with the data:ndk folder - added in user-startup:
Code:
assign include: data:ndk ADD
something usefull for the SCOPTIONS file - put this file in your source folder:
Code:
VERBOSE
ERRORREXX
NOICONS
there is a default SCOPTIONS in envarc:sc/ which you may edit accordingly