#
# This is a very basic example of how one might wish to
# compile programs for use with ApT-BBS.
#
# in order to compile simply with SAS/C type,
#
# smake<return>
#
# BTW - the '#'s count as COMMENT lines, ..

#
# Here you place the names of your files minus the .c
# extension, can be a title, but normally the title
# of the file.
#
# example,
#
# all: hotkey_menu menu_kw toggle_menu interlogin
#

# Our basic flags that will be passed onto most, if not all, of the
# projects that are created, allows the program to be made 'resident'
# which will obviously make loading that much quicker if taken
# advantage
#
# e.g resident es apt:modules/editstats pure
#
# then calling the above module in the correct method without the path
# name, but rather the 'es' portion as the name, would result within
# the program being being loaded (once) then subsiquent calls would
# be faster as the program does not need to be loaded, just called.
#

CFLAGS   = startup=cres

#
# depending where you place this, you pay need to supply a path
# to it. Some may place it within LIB: (not LIBS:) and call
# it via LIBS = LIB:ApTLib.lib, that way it is easy to find
# no matter what directory you program from.
#
LINKLIB     = ApTLib.lib

all: hotkey_menu

hotkey_menu: hotkey_menu.c
   sc link $(CLFAGS) $(LINKLIB) hotkey_menu.c
	copy hotkey_menu apt:modules/Core_hotkey

#menu_kw: menu_kw.c
#   sc link $(CLFAGS) $(LINKLIB) menu_kw.c
# 	copy menu_kw apt:modules/Core_keyword

#toggle_menu: toggle_menu.c
#   sc link $(CLFAGS) $(LINKLIB) toggle_menu.c
#	copy toggle_menu apt:modules/toggle_menu

#interlogin: interlogin.c
#   sc link $(CLFAGS) $(LINKLIB) interlogin.c
#	copy interlogin apt:modules/Interlogin

