########################################################################## # file: Makefile # # This is the DCE Makefile for the room reservation application. ########################################################################## ########################### # Definitions ########################### CC = /usr/pubsw/bin/gcc CFLAGS = -g -Wall -D_REENTRANT -DSUNOS5 LIBS = -ldce -lnsl -lthread -lm -lsocket INCL = -I IDLCMD = idl -v -keep all -cc_cmd "$(CC) -c $(CFLAGS)" SYS_TYPE = sun4m_53 APPL = room_res ########################### # Do a complete build ########################### all: interface client server ########################### # Do the interface build ########################### interface: $(APPL).h $(APPL)_cstub.o $(APPL)_sstub.o $(APPL).h $(APPL)_cstub.o $(APPL)_sstub.o: $(APPL).idl $(IDLCMD) $(APPL).idl ########################### # Do the client build ########################### client: $(APPL).h client.o $(APPL)_cstub.o $(CC) $(CFLAGS) -o client client.o $(APPL)_cstub.o $(LIBS) ########################### # Do the server build ########################### server: $(APPL).h server.o RR.o $(APPL)_sstub.o $(CC) $(CFLAGS) -o server server.o RR.o $(APPL)_sstub.o $(LIBS) clean: rm client *.o