Examples

Simple Library

#file "config.mak"

PROJNAME = test
LIBNAME = ltest

DEFINES = TEST_THIS

SRC  =  ltest1.c ltest2.c ltest3.c

ifneq ($(findstring IRIX, $(TEC_UNAME)), ) # in any IRIX system
  DEFINES += TEST_IRIX
endif

Secondary Library

#file "lstest.mak"
#  tecmake MF=lstest

PROJNAME = test
LIBNAME = lstest

INCLUDES = ../include

SRC = lstest1.c lstest.c
SRC := $(addprefix lstest/, $(SRC)) # source files in a subfolder

ifeq ($(TEC_UNAME), IRIX65) # only in IRIX65
  SRC += lstest/lstest_irix65.c
endif

# To generate the DLL
LDIR = ../lib/dll
LIBS = lstest

Application

#file "atest.mak"
#  tecmake MF=atest

PROJNAME = test
APPNAME = atest

SRC = atest.c atest1.c atest2.c
SRC := $(addprefix atest/, $(SRC))

LDIR = ../lib/$(TEC_UNAME)
LIBS = lstest ltest