The following is an example of the
User_Makefile
on UNIX.OBJECTS = user_activities_out.o
CFLAGS = -o -I$$STM_ROOT/etc/prt/c\
-I$$STM_ROOT/etc/sched -DPRTar rvu out_lib.a $(objects)
ranlib out_lib.aAssume that you wish to add a file myfile.c and a header
myfile.h
to the prototype. TheUser_Makefile
should look like:OBJECTS = user_activities_out.o myfile.o
CFLAGS = -o -I$$STM_ROOT/etc/prt/c\
-I$$STM_ROOT/etc/sched -DPRTar rvu out_lib.a $(objects)
ranlib out_lib.aThe following is an example of the
User_Makefile
on a PC.CFLAGS = /nologo /MTd /W3 /Zd /Os
all : tmp_out_lib.lib
lib $(OBJECTS) /OUT:tmp_out_lib.lib