Make.proto
changeset 82 01383bce1b7c
parent 77 3ec9d8e38918
child 93 7faf64aa8ad3
--- a/Make.proto	Fri Feb 09 23:14:28 1996 +0100
+++ b/Make.proto	Sun Feb 11 13:48:19 1996 +0100
@@ -106,11 +106,31 @@
 
 smalltalk:: $(TARGET)$(TARGET_RULE_EXTENSION)
 
+#
+# demo for a graphical standAlone application (simply opening a FileBrowser)
+#
+demoApp1:
+	    -rm main.o
+	    $(MAKE) main.o MAIN=$(LIBRUNDIR)/appmain.c STARTUP_CLASS='"FileBrowser"' STARTUP_SELECTOR='"open"'
+	    $(MAKE) linkTarget TARGET=demoApp1
+
+#
+# demo for a non-graphical standAlone application (simply computing 100 factorial)
+#
+demoApp2:   DemoApp2.o
+	    -rm main.o
+	    $(MAKE) main.o MAIN=$(LIBRUNDIR)/appmain.c STARTUP_CLASS='"DemoApp2"' STARTUP_SELECTOR='"start"'
+	    $(MAKE) linkTarget \
+			LIBLIST="$(MINI_LIST)" \
+			LIBOBJS="$(MINI_LIB)" \
+			TARGET=demoApp2 \
+			EXTRA_OBJ="DemoApp2.o" \
+			EXTRA_CLASSES="DemoApp2"
+
 smalltalk_static:
 	    @echo "making statically linked smalltalk ..."
 	    @$(MAKE) linkIt LIBOBJS="$(LIBOBJS)" EXTRA_OBJ="$(EXTRA_OBJ)" LIBLIST="$(LIBLIST)"
 
-
 smalltalk_shared:
 	    @echo "making shared library linked smalltalk ..."
 	    @$(MAKE) linkIt LIBOBJS="$(LIBOBJS)" EXTRA_OBJ="$(EXTRA_OBJ)" LIBLIST="$(LIBLIST)"
@@ -176,6 +196,12 @@
 collectAbbrev::
 	    @-rm -f abbrev.stc
 
+classes::
+	    -mkdir classes
+	    -for i in source/*.st; do \
+	        stcomp -i stcomp.img $$i; \
+	    done
+
 #
 # make a new source subdirectory
 # the source directory consists of sym-links to all .st files we find