]> git.saurik.com Git - wxWidgets.git/blame - samples/wxsocket/makefile.g95
Added the forgotten file txtstrm.tex
[wxWidgets.git] / samples / wxsocket / makefile.g95
CommitLineData
f4ada568
GL
1#
2# File: makefile.unx
27529614
JS
3# Author: Julian Smart
4# Created: 1993
f4ada568 5# Updated:
27529614 6# Copyright: (c) 1993, AIAI, University of Edinburgh
f4ada568
GL
7#
8# "%W% %G%"
9#
27529614 10# Makefile for server/client example (UNIX).
f4ada568
GL
11
12WXDIR = ../..
13
14# All common UNIX compiler flags and options are now in
15# this central makefile.
16include $(WXDIR)/src/makeg95.env
17
27529614
JS
18OBJECTS=$(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF)\
19 $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF)
f4ada568 20
27529614 21all: $(OBJDIR) server$(GUISUFFIX) client$(GUISUFFIX)
f4ada568 22
f4ada568
GL
23
24$(OBJDIR):
25 mkdir $(OBJDIR)
26
27529614
JS
27server$(GUISUFFIX): $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(WXLIB)
28 $(CC) $(LDFLAGS) -o server$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(LDLIBS)
f4ada568 29
27529614
JS
30$(OBJDIR)/server.$(OBJSUFF): server.$(SRCSUFF) server.h
31 $(CC) -c $(CPPFLAGS) -o $@ server.$(SRCSUFF)
f4ada568 32
27529614
JS
33client$(GUISUFFIX): $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(WXLIB)
34 $(CC) $(LDFLAGS) -o client$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(LDLIBS)
f4ada568 35
27529614
JS
36$(OBJDIR)/client.$(OBJSUFF): client.$(SRCSUFF) client.h
37 $(CC) -c $(CPPFLAGS) -o $@ client.$(SRCSUFF)
38
39$(OBJDIR)/server_resources.o: server.rc
40 $(RESCOMP) -i server.rc -o $(OBJDIR)/server_resources.o $(RESFLAGS)
f4ada568 41
27529614
JS
42$(OBJDIR)/client_resources.o: client.rc
43 $(RESCOMP) -i client.rc -o $(OBJDIR)/client_resources.o $(RESFLAGS)
f4ada568
GL
44
45clean:
27529614 46 rm -f $(OBJECTS) server$(GUISUFFIX).exe client$(GUISUFFIX).exe core *.rsc *.res