]>
Commit | Line | Data |
---|---|---|
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 | |
12 | WXDIR = ../.. | |
13 | ||
14 | # All common UNIX compiler flags and options are now in | |
15 | # this central makefile. | |
16 | include $(WXDIR)/src/makeg95.env | |
17 | ||
27529614 JS |
18 | OBJECTS=$(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF)\ |
19 | $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) | |
f4ada568 | 20 | |
27529614 | 21 | all: $(OBJDIR) server$(GUISUFFIX) client$(GUISUFFIX) |
f4ada568 | 22 | |
f4ada568 GL |
23 | |
24 | $(OBJDIR): | |
25 | mkdir $(OBJDIR) | |
26 | ||
27529614 JS |
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) | |
f4ada568 | 29 | |
27529614 JS |
30 | $(OBJDIR)/server.$(OBJSUFF): server.$(SRCSUFF) server.h |
31 | $(CC) -c $(CPPFLAGS) -o $@ server.$(SRCSUFF) | |
f4ada568 | 32 | |
27529614 JS |
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) | |
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 | |
45 | clean: | |
27529614 | 46 | rm -f $(OBJECTS) server$(GUISUFFIX).exe client$(GUISUFFIX).exe core *.rsc *.res |