]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/makefile.g95
compilation fix for recent commit
[wxWidgets.git] / samples / controls / makefile.g95
index 3d2f52233f540084b9e252a2a50718a3bbb6751d..28a81c25cf0d27faaa3d17cb110ad3a522f8ace5 100644 (file)
@@ -1,37 +1,16 @@
 #
 #
-# File:                makefile.unx
-# Author:      Julian Smart
-# Created:     1993
-# Updated:     
-# Copyright:   (c) 1993, AIAI, University of Edinburgh
+# File:         makefile.g95
+# Author:       Julian Smart
+# Created:      1999
+# Updated:
+# Copyright:    (c) Julian Smart, 1999
 #
 #
-# "%W% %G%"
-#
-# Makefile for controls example (UNIX).
+# Makefile for wxWindows sample (Cygwin/Mingw32).
 
 WXDIR = ../..
 
 
 WXDIR = ../..
 
-# All common UNIX compiler flags and options are now in
-# this central makefile.
-include $(WXDIR)/src/makeg95.env
-
-OBJECTS = $(OBJDIR)/controls.$(OBJSUFF) $(OBJDIR)/controls_resources.$(OBJSUFF)
-
-all:    $(OBJDIR) controls$(GUISUFFIX)$(EXESUFF)
-
-wx:
-
-$(OBJDIR):
-       mkdir $(OBJDIR)
-
-controls$(GUISUFFIX)$(EXESUFF):        $(OBJECTS) $(WXLIB)
-       $(CC) $(LDFLAGS) -o controls$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
-
-$(OBJDIR)/controls.$(OBJSUFF): controls.$(SRCSUFF)
-       $(CC) -c $(CPPFLAGS) -o $@ controls.$(SRCSUFF)
+TARGET=controls
+OBJECTS = $(TARGET).o
 
 
-$(OBJDIR)/controls_resources.o:  controls.rc
-       $(RESCOMP) -i controls.rc -o $(OBJDIR)/controls_resources.o $(RESFLAGS)
+include $(WXDIR)/src/makeprog.g95
 
 
-clean:
-       rm -f $(OBJECTS) controls$(GUISUFFIX).exe core *.rsc *.res