PreviousNext

Makefile

Following are the contents of the greet_dced Makefile.

##############################################################################

# #

# Makefile: A generic makefile suitable for building the greet_dced #

# application. #

# #

# -77 cols- #

##############################################################################

DCEROOT = /opt/dcelocal

CC = /bin/c89

IDL = idl

LIBDIRS = -L${DCEROOT}/usr/lib

LIBS = -ldce -lc_r

LIBALL = ${LIBDIRS} ${LIBS}

INCDIRS = -I. -I${DCEROOT}/share/include

CFLAGS = -g ${INCDIRS} -D_SHARED_LIBRARIES -D__hppa -Dhp9000s800 \e

-Dhp9000s700 -D__hp9000s800 -D__hp9000s700 -DHPUX -D__hpux \e

-Dunix +DA1.1 -D_HPUX_SOURCE

IDLFLAGS = -v ${INCDIRS} -cc_cmd "${CC} ${CFLAGS} -c"

all: greet_dced_client greet_dced_server

greet_dced.h greet_dced_cstub.o greet_dced_sstub.o: greet_dced.idl

${IDL} ${IDLFLAGS} greet_dced.idl

greet_dced_client: greet_dced.h greet_dced_client.o util.o greet_dced_cstub.o

${CC} -o greet_dced_client greet_dced_client.o greet_dced_cstub.o \e

util.o ${LIBALL}

greet_dced_server: greet_dced.h greet_dced_server.o greet_dced_manager.o util.o \e

greet_dced_sstub.o

${CC} -o greet_dced_server greet_dced_server.o greet_dced_manager.o \e

greet_dced_sstub.o util.o ${LIBALL}

greet_dced_client.c greet_dced_server.c util.c: util.h

greet_dced_manager.c greet_dced_client.c greet_dced_server.c: greet_dced.h

clobber:

rm -f greet_dced.h greet_dced_client greet_dced_client.o greet_dced_cstub.o \e

greet_dced_manager.o greet_dced_server greet_dced_server.o \e

greet_dced_server_dce.o greet_dced_sstub.o server_struct.o \e

greet_dced_server_dce util.o