]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/toolbar/makefile.sc
more updates for recent toolbar changes
[wxWidgets.git] / samples / toolbar / makefile.sc
index 97e6a2ad93784c37069be087530eb00a9028e1da..6de8e6893cea06026c6fa3b86a27019ac1ced554 100644 (file)
@@ -1,42 +1,37 @@
-# Symantec C++ makefile for the buttonbar library
+# Purpose: makefile for toolbar example (Symantec C++)
+# Created: 2000-03-14
 
 WXDIR = $(WXWIN)
 
 WXDIR = $(WXWIN)
-!include $(WXDIR)\src\makesc.env
-
 WXLIB = $(WXDIR)\lib\wx.lib
 INCDIR = $(WXDIR)\include
 WXLIB = $(WXDIR)\lib\wx.lib
 INCDIR = $(WXDIR)\include
-MSWINC = $(INCDIR)\msw
-BASEINC = $(INCDIR)\base
-
-BUTTNBARDIR = $(WXDIR)\samples\buttnbar
-
-# Default is to output RTF for WinHelp
-WINHELP=-winhelp
-
-CC=sc
-RC=rc
-CFLAGS = -o -ml -W -Dwx_msw
-LDFLAGS = -ml -W
-
-INCLUDE=$(BASEINC);$(MSWINC)
-
-LIBS=$(WXLIB) libw.lib commdlg.lib shell.lib
+INCLUDE=$(INCDIR)
+TARGET=toolbar
 
 
-all:    test.exe
+include $(WXDIR)\src\makesc.env
 
 
-.$(SRCSUFF).obj:
-       *$(CC) -c $(CFLAGS) -I$(INCLUDE) $<
+toolbar.exe: toolbar.obj $(DEFFILE) toolbar.res
+       *$(CC) $(LDFLAGS) -o$@ $** $(LIBS)
+    *$(RC) -k toolbar.res
 
 
-.rc.res:
-       *$(RC) -r -I$(INCLUDE) $<
+sc32.def:
+     echo EXETYPE NT > sc32.def
+     echo SUBSYSTEM WINDOWS >> sc32.def
 
 
-test.exe: test.obj test.def test.res
-       *$(CC) $(LDFLAGS) -o$@ test.obj test.def $(LIBS)
-       *$(RC) -k test.res
+sc16.def:
+     echo NAME $(TARGET) > sc16.def
+     echo EXETYPE WINDOWS >> sc16.def
+     echo STUB         'WINSTUB.EXE' >> sc16.def
+     echo CODE         PRELOAD MOVEABLE DISCARDABLE >> sc16.def
+     echo DATA         PRELOAD MOVEABLE MULTIPLE >> sc16.def
+     echo HEAPSIZE     1024 >> sc16.def
+     echo STACKSIZE    8192 >> sc16.def
 
 clean:
 
 clean:
-        -del *.obj
+    -del *.obj
        -del *.exe
        -del *.res
        -del *.map
        -del *.exe
        -del *.res
        -del *.map
+       -del *.rws
+    -del sc32.def
+    -del sc16.def