# Makefile for GDM file server
# Shiv Sikand Fri May 28 18:00:52 PDT 1999
CC = g++ -g
#LOADFLAGS = -DSUNOS_5_X -DSYSV -DSVR4 -Dsun4v -D_REENTRANT -D_DEBUG
LOADLIBES = -L/usr/X11R6/lib -lfltk -lX11 -lXext -lm -L/usr/local/lib -lglib-2.0
PROGRAM = cbrowser
SRCS = cbrowser.c gui.c
HEADERPATH = -I. -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include
OBJS = $(SRCS:.c=.o)
FIRST_RULE: ${PROGRAM} ${PROGRAM2} # Compile any sources. Find the .h files in HEADERPATH.
.c.o:
@echo Compiling $< ; rm -f ${PROGRAM} ${PROGRAM2};
${CC} -c ${CFLAGS} $< ${HEADERPATH}
# Link the target program using ld.
${PROGRAM}:${OBJS}
@echo Linking ${PROGRAM};
${CC} ${OBJS} ${LOADLIBES} ${LOADFLAGS} -o ${PROGRAM}
clean:
rm -f ${PROGRAM} ${OBJS}