6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for server/client example (UNIX).
14 # All common UNIX compiler flags and options are now in
15 # this central makefile.
16 include $(WXDIR)/src/makeg95.env
18 OBJECTS=$(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF)\
19 $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF)
21 all: $(OBJDIR) server$(GUISUFFIX) client$(GUISUFFIX)
27 server$(GUISUFFIX): $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(WXLIB)
28 $(CC) $(LDFLAGS) -o server$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(LDLIBS)
30 $(OBJDIR)/server.$(OBJSUFF): server.$(SRCSUFF) server.h
31 $(CC) -c $(CPPFLAGS) -o $@ server.$(SRCSUFF)
33 client$(GUISUFFIX): $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(WXLIB)
34 $(CC) $(LDFLAGS) -o client$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(LDLIBS)
36 $(OBJDIR)/client.$(OBJSUFF): client.$(SRCSUFF) client.h
37 $(CC) -c $(CPPFLAGS) -o $@ client.$(SRCSUFF)
39 $(OBJDIR)/server_resources.o: server.rc
40 $(RESCOMP) -i server.rc -o $(OBJDIR)/server_resources.o $(RESFLAGS)
42 $(OBJDIR)/client_resources.o: client.rc
43 $(RESCOMP) -i client.rc -o $(OBJDIR)/client_resources.o $(RESFLAGS)
46 rm -f $(OBJECTS) server$(GUISUFFIX).exe client$(GUISUFFIX).exe core *.rsc *.res