4 # SAS/C Makefile for TreeViewClass
8 # (C) Copyright 1999 Manuel Lemos.
9 # (C) Copyright 1996-1999 Nick Christie.
10 # All Rights Reserved.
13 # Revision 42.0 2000/05/09 22:22:21 mlemos
14 # Bumped to revision 42.0 before handing BGUI to AROS team
16 # Revision 41.11 2000/05/09 20:36:09 mlemos
17 # Bumped to revision 41.11
19 # Revision 1.2 2000/05/09 20:01:03 mlemos
20 # Merged with the branch Manuel_Lemos_fixes.
22 # Revision 1.1.2.4 1999/05/31 02:49:19 mlemos
23 # Stopped SAS\C from creating an executable from the shared library startup
26 # Revision 1.1.2.3 1999/05/31 01:28:16 mlemos
27 # Made the programs be built with standard startup code.
28 # Removed needless targets.
29 # Added a clean target.
30 # Made the class be built as gadget shared library.
32 # Revision 1.1.2.2 1999/05/25 00:09:55 mlemos
33 # Made the executables be outputted to //bin directory.
34 # Made object files be outputted to //o directory.
35 # Made the SAS/C assembler be used instead of genam.
36 # Added a target to clean outputted files.
38 # Revision 1.1.2.1 1999/02/21 04:08:27 mlemos
39 # Nick Christie sources.
44 TESTPROGRAMNAME= TestTreeView
45 DEMOPROGRAMNAME= TreeViewDemo
46 TESTPROGRAM= //bin/$(TESTPROGRAMNAME)
47 DEMOPROGRAM= //bin/$(DEMOPROGRAMNAME)
50 CLASSLIBRARY= /bgui_treeview.gadget
51 CLASSINCLUDE= include:bgui/bgui_treeview.h
52 LIBRARY_OBJECT_OPTIONS= RESETOPTIONS ERRORREXX IDIR=$(INCDIR) NOSTACKCHECK PARAMETERS=REGISTERS STRINGMERGE NOCHECKABORT COMMENTNEST VERBOSE NOVERSION UTILITYLIBRARY NOICONS MEMORYSIZE=HUGE NOSTARTUP
53 LIBRARY_COMMON_SOURCE= /common/
54 PROGRAM_OPTIONS= IDIR=$(INCDIR) STRIPDEBUG SMALLCODE SMALLDATA OPTIMIZE OPTIMIZETIME OBJNAME=$(OBJDIR) DEFINE DEBUG=1 DEFINE MEMDBG=1 DEFINE TV_NODE_INLINE=1 DEFINE DUMPMETHOD=1 LINK
60 TVOBJS= $(OBJDIR)bguiclass_lib.lo $(OBJDIR)TreeViewClass.lo \
61 $(OBJDIR)TVExpand.lo $(OBJDIR)TVGetEntry.lo $(OBJDIR)TVGetSet.lo \
62 $(OBJDIR)TVInput.lo $(OBJDIR)TVInsert.lo $(OBJDIR)TVLVHandlers.lo \
63 $(OBJDIR)TVMisc.lo $(OBJDIR)TVMove.lo $(OBJDIR)TVNewDispose.lo \
64 $(OBJDIR)TVRemove.lo $(OBJDIR)TVReplace.lo $(OBJDIR)TVSelect.lo \
65 $(OBJDIR)TVUtil.lo $(OBJDIR)TVVisible.lo
67 TVINCS= $(INCDIR)TVUtil.h $(INCDIR)TreeViewPrivate.h $(INCDIR)TreeViewClass.h
74 sc $(LIBRARY_OBJECT_OPTIONS) $< OBJNAME $@
77 @echo Installing $@...
78 @copy >NIL: $*.h to $@
84 all: $(CLASSLIBRARY) $(TESTPROGRAM) $(DEMOPROGRAM)
86 $(CLASSINCLUDE): include/TreeViewClass.h
88 $(OBJDIR)bguiclass_lib.lo: $(LIBRARY_COMMON_SOURCE)bguiclass_lib.c
89 $(OBJDIR)TreeViewClass.lo: TreeViewClass.c
90 $(OBJDIR)TVExpand.lo: TVExpand.c
91 $(OBJDIR)TVGetEntry.lo: TVGetEntry.c
92 $(OBJDIR)TVGetSet.lo: TVGetSet.c
93 $(OBJDIR)TVInput.lo: TVInput.c
94 $(OBJDIR)TVInsert.lo: TVInsert.c
95 $(OBJDIR)TVLVHandlers.lo: TVLVHandlers.c
96 $(OBJDIR)TVMisc.lo: TVMisc.c
97 $(OBJDIR)TVMove.lo: TVMove.c
98 $(OBJDIR)TVNewDispose.lo: TVNewDispose.c
99 $(OBJDIR)TVRemove.lo: TVRemove.c
100 $(OBJDIR)TVReplace.lo: TVReplace.c
101 $(OBJDIR)TVSelect.lo: TVSelect.c
102 $(OBJDIR)TVUtil.lo: TVUtil.c
103 $(OBJDIR)TVVisible.lo : TVVisible.c
105 $(OBJDIR)bguiclass_libtag.o: $(LIBRARY_COMMON_SOURCE)bguiclass_libtag.a
106 sc RESETOPTIONS ASSEMBLER $(LIBRARY_COMMON_SOURCE)bguiclass_libtag.a OBJECTNAME $(OBJDIR) TO bguiclass_libtag.o
108 $(CLASSLIBRARY): $(OBJDIR)bguiclass_libtag.o $(TVOBJS)
110 slink NODEBUG NOICONS FROM $(OBJDIR)bguiclass_libtag.o LIB lib:sc.lib lib:amiga.lib LIB:debug.lib FROM $(TVOBJS) TO $@
112 $(TESTPROGRAM): $(TESTPROGRAMNAME).c $(CLASSLIBRARY) $(CLASSINCLUDE)
113 sc $(PROGRAM_OPTIONS) FROM $(TESTPROGRAMNAME).c TO $(TESTPROGRAM)
114 -Delete $(TESTPROGRAM).lnk
116 $(DEMOPROGRAM): $(DEMOPROGRAMNAME).c $(CLASSLIBRARY) $(CLASSINCLUDE)
117 sc $(PROGRAM_OPTIONS) FROM $(DEMOPROGRAMNAME).c TO $(DEMOPROGRAM)
118 -Delete $(DEMOPROGRAM).lnk
124 -Delete $(DEMOPROGRAM)
125 -Delete $(TESTPROGRAM)
126 -Delete $(CLASSLIBRARY)
127 -Delete $(CLASSINCLUDE)