]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/sockets/makefile.g95
Added fix to send scroll messages from mouse wheel instead of scrolling directly
[wxWidgets.git] / samples / sockets / makefile.g95
index 4d1b5983be0ad53921b97162a22f0d923ce61726..40343ddace246d8099feca4c9fab0d67fc413d6e 100644 (file)
@@ -1,5 +1,5 @@
 #
-# File:                makefile.unx
+# File:                makefile.g95
 # Author:      Julian Smart
 # Created:     1993
 # Updated:     
@@ -9,38 +9,11 @@
 #
 # Makefile for server/client example (UNIX).
 
-WXDIR = ../..
-
-# All common UNIX compiler flags and options are now in
-# this central makefile.
-include $(WXDIR)/src/makeg95.env
-
-OBJECTS=$(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF)\
- $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF)
-
-all:   $(OBJDIR) server$(GUISUFFIX) client$(GUISUFFIX)
-
-
-$(OBJDIR):
-       mkdir $(OBJDIR)
-
-server$(GUISUFFIX): $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(WXLIB)
-       $(CC) $(LDFLAGS) -o server$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(LDLIBS)
-
-$(OBJDIR)/server.$(OBJSUFF):        server.$(SRCSUFF)
-       $(CC) -c $(CPPFLAGS) -o $@ server.$(SRCSUFF)
-
-client$(GUISUFFIX): $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(WXLIB)
-       $(CC) $(LDFLAGS) -o client$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(LDLIBS)
-
-$(OBJDIR)/client.$(OBJSUFF):        client.$(SRCSUFF)
-       $(CC) -c $(CPPFLAGS) -o $@ client.$(SRCSUFF)
-        
-$(OBJDIR)/server_resources.o:  server.rc
-       $(RESCOMP) -i server.rc -o $(OBJDIR)/server_resources.o $(RESFLAGS)
-
-$(OBJDIR)/client_resources.o:  client.rc
-       $(RESCOMP) -i client.rc -o $(OBJDIR)/client_resources.o $(RESFLAGS)
+all:
+       make -f client.g95 all
+       make -f server.g95 all
 
 clean:
-       rm -f $(OBJECTS) server$(GUISUFFIX).exe client$(GUISUFFIX).exe core *.rsc *.res
+       make -f client.g95 clean
+       make -f server.g95 clean
+