]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/thread/makefile.sc
added dead-strip static initialization code option
[wxWidgets.git] / samples / thread / makefile.sc
index b0965c1b96c2513f5e4cab72b2f1029904e6e1ab..58539802e0d8e2b519833072102a691066ea6cc0 100644 (file)
@@ -1,35 +1,37 @@
-# Symantec C++ makefile for thread example
-# NOTE that peripheral libraries are now dealt in main wxWindows makefile.
+# Purpose: makefile for thread example (Symantec C++)
+# Created: 2000-03-15
 
 WXDIR = $(WXWIN)
-!include $(WXDIR)\src\makesc.env
-
 WXLIB = $(WXDIR)\lib\wx.lib
 INCDIR = $(WXDIR)\include
-MSWINC = $(INCDIR)\msw
-BASEINC = $(INCDIR)\base
-
-CC=sc
-RC=rc
-CFLAGS = -o -ml -W -Dwx_msw
-LDFLAGS = -ml -W
-
-INCLUDE=$(BASEINC);$(MSWINC)
+INCLUDE=$(INCDIR)
+TARGET=thread
 
-LIBS=$(WXLIB) libw.lib commdlg.lib shell.lib
+include $(WXDIR)\src\makesc.env
 
-.$(SRCSUFF).obj:
-       *$(CC) -c $(CFLAGS) -I$(INCLUDE) $<
+thread.exe: thread.obj $(DEFFILE) thread.res
+       *$(CC) $(LDFLAGS) -o$@ $** $(LIBS)
+    *$(RC) -k thread.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$@ $** $(LIBS)
+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:
-        -del *.obj
+    -del *.obj
        -del *.exe
        -del *.res
        -del *.map
        -del *.rws
+    -del sc32.def
+    -del sc16.def
+