1998-09-06 14:28:00 -04:00
|
|
|
#
|
|
|
|
# File: makefile.unx
|
1998-09-08 18:27:12 -04:00
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1993
|
1998-09-06 14:28:00 -04:00
|
|
|
# Updated:
|
1998-09-08 18:27:12 -04:00
|
|
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
1998-09-06 14:28:00 -04:00
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
1998-09-08 18:27:12 -04:00
|
|
|
# Makefile for server/client example (UNIX).
|
1998-09-06 14:28:00 -04:00
|
|
|
|
|
|
|
WXDIR = ../..
|
|
|
|
|
|
|
|
# All common UNIX compiler flags and options are now in
|
|
|
|
# this central makefile.
|
|
|
|
include $(WXDIR)/src/makeg95.env
|
|
|
|
|
1998-09-08 18:27:12 -04:00
|
|
|
OBJECTS=$(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF)\
|
|
|
|
$(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF)
|
1998-09-06 14:28:00 -04:00
|
|
|
|
1998-09-08 18:27:12 -04:00
|
|
|
all: $(OBJDIR) server$(GUISUFFIX) client$(GUISUFFIX)
|
1998-09-06 14:28:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
$(OBJDIR):
|
|
|
|
mkdir $(OBJDIR)
|
|
|
|
|
1998-09-08 18:27:12 -04:00
|
|
|
server$(GUISUFFIX): $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(WXLIB)
|
|
|
|
$(CC) $(LDFLAGS) -o server$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/server.$(OBJSUFF) $(OBJDIR)/server_resources.$(OBJSUFF) $(LDLIBS)
|
1998-09-06 14:28:00 -04:00
|
|
|
|
1998-09-08 18:27:12 -04:00
|
|
|
$(OBJDIR)/server.$(OBJSUFF): server.$(SRCSUFF) server.h
|
|
|
|
$(CC) -c $(CPPFLAGS) -o $@ server.$(SRCSUFF)
|
1998-09-06 14:28:00 -04:00
|
|
|
|
1998-09-08 18:27:12 -04:00
|
|
|
client$(GUISUFFIX): $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(WXLIB)
|
|
|
|
$(CC) $(LDFLAGS) -o client$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/client.$(OBJSUFF) $(OBJDIR)/client_resources.$(OBJSUFF) $(LDLIBS)
|
1998-09-06 14:28:00 -04:00
|
|
|
|
1998-09-08 18:27:12 -04:00
|
|
|
$(OBJDIR)/client.$(OBJSUFF): client.$(SRCSUFF) client.h
|
|
|
|
$(CC) -c $(CPPFLAGS) -o $@ client.$(SRCSUFF)
|
|
|
|
|
|
|
|
$(OBJDIR)/server_resources.o: server.rc
|
|
|
|
$(RESCOMP) -i server.rc -o $(OBJDIR)/server_resources.o $(RESFLAGS)
|
1998-09-06 14:28:00 -04:00
|
|
|
|
1998-09-08 18:27:12 -04:00
|
|
|
$(OBJDIR)/client_resources.o: client.rc
|
|
|
|
$(RESCOMP) -i client.rc -o $(OBJDIR)/client_resources.o $(RESFLAGS)
|
1998-09-06 14:28:00 -04:00
|
|
|
|
|
|
|
clean:
|
1998-09-08 18:27:12 -04:00
|
|
|
rm -f $(OBJECTS) server$(GUISUFFIX).exe client$(GUISUFFIX).exe core *.rsc *.res
|