]> git.saurik.com Git - wxWidgets.git/commitdiff
...and extra proplist makefiles too
authorRon Lee <ron@debian.org>
Tue, 14 Mar 2000 18:22:50 +0000 (18:22 +0000)
committerRon Lee <ron@debian.org>
Tue, 14 Mar 2000 18:22:50 +0000 (18:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/proplist/makefile.sc [new file with mode: 0644]
samples/proplist/makefile.sl [new file with mode: 0644]
samples/proplist/makefile.twn [new file with mode: 0644]
samples/proplist/makefile.unx [new file with mode: 0644]

diff --git a/samples/proplist/makefile.sc b/samples/proplist/makefile.sc
new file mode 100644 (file)
index 0000000..ccb825a
--- /dev/null
@@ -0,0 +1,37 @@
+# Purpose: makefile for proplist example (Symantec C++)
+# Created: 2000-03-15
+
+WXDIR = $(WXWIN)
+WXLIB = $(WXDIR)\lib\wx.lib
+INCDIR = $(WXDIR)\include
+INCLUDE=$(INCDIR)
+TARGET=proplist
+
+include $(WXDIR)\src\makesc.env
+
+proplist.exe: proplist.obj $(DEFFILE) proplist.res
+       *$(CC) $(LDFLAGS) -o$@ $** $(LIBS)
+    *$(RC) -k proplist.res
+
+sc32.def:
+     echo EXETYPE NT > sc32.def
+     echo SUBSYSTEM WINDOWS >> sc32.def
+
+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 *.exe
+       -del *.res
+       -del *.map
+       -del *.rws
+    -del sc32.def
+    -del sc16.def
+
diff --git a/samples/proplist/makefile.sl b/samples/proplist/makefile.sl
new file mode 100644 (file)
index 0000000..c0b4ea4
--- /dev/null
@@ -0,0 +1,14 @@
+# Purpose: makefile for proplist example (Salford C++)
+# Created: 2000-03-15
+
+PROGRAM = proplist
+OBJECTS = $(PROGRAM).obj
+
+include ..\..\src\makeprog.sl
+
+all:        wx $(TARGET)
+
+wx:
+    cd $(WXDIR)\src\msw ^ mk32 -f makefile.sl all
+    cd $(WXDIR)\samples\proplist
+
diff --git a/samples/proplist/makefile.twn b/samples/proplist/makefile.twn
new file mode 100644 (file)
index 0000000..fc20444
--- /dev/null
@@ -0,0 +1,35 @@
+# Purpose: makefile for proplist example (TWIN)
+# Created: 2000-03-15
+
+WXDIR = ../..
+
+# All common UNIX compiler flags and options are now in
+# this central makefile.
+include $(WXDIR)/src/maketwin.env
+
+OBJECTS = $(OBJDIR)/proplist.$(OBJSUFF) $(OBJDIR)/proplist.$(OBJSUFF)
+
+all:    $(OBJDIR) proplist$(GUISUFFIX)$(EXESUFF)
+
+wx:
+
+$(OBJDIR):
+       mkdir $(OBJDIR)
+
+proplist$(GUISUFFIX)$(EXESUFF):        $(OBJECTS) $(WXLIB)
+       $(CC) $(LDFLAGS) -o proplist$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
+
+$(OBJDIR)/proplist.$(OBJSUFF): proplist.$(SRCSUFF)
+       $(CC) -c $(CPPFLAGS) -o $@ proplist.$(SRCSUFF)
+
+proplist.c:  proplist.rc
+       $(RESCOMP) $(RCINPUTSWITCH) proplist.rc $(RCOUTPUTSWITCH) proplist.c $(RESFLAGS)
+
+$(OBJDIR)/proplist.$(OBJSUFF): proplist.c
+       $(CC) -c $(CPPFLAGS) -o $@ proplist.c
+
+#$(OBJDIR)/proplist.o:  proplist.rc
+#      $(RESCOMP) $(RCINPUTSWITCH) proplist.rc $(RCOUTPUTSWITCH) $(OBJDIR)/proplist.o $(RESFLAGS)
+
+clean:
+       rm -f $(OBJECTS) proplist$(GUISUFFIX).exe core *.rsc *.res
diff --git a/samples/proplist/makefile.unx b/samples/proplist/makefile.unx
new file mode 100644 (file)
index 0000000..a4f6c6e
--- /dev/null
@@ -0,0 +1,23 @@
+# Purpose: makefile for proplist example (Unix)
+# Created: 2000-03-15
+
+CC = gcc
+
+PROGRAM = proplist
+
+OBJECTS = $(PROGRAM).o
+
+# implementation
+
+.SUFFIXES:     .o .cpp
+
+.cpp.o :
+       $(CC) -c `wx-config --cflags` -o $@ $<
+
+all:    $(PROGRAM)
+
+$(PROGRAM):    $(OBJECTS)
+       $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+
+clean:
+       rm -f *.o $(PROGRAM)