84 lines
1.9 KiB
Makefile
84 lines
1.9 KiB
Makefile
# $Id: Makefile.in,v 1.1.1.2 2000/12/29 01:42:27 assar Exp $
|
|
|
|
SHELL = /bin/sh
|
|
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
top_builddir = ../..
|
|
|
|
CC = @CC@
|
|
LINK = @LINK@
|
|
AR = ar
|
|
DEFS = @DEFS@
|
|
CFLAGS = @CFLAGS@ $(WFLAGS)
|
|
WFLAGS = @WFLAGS@
|
|
LD_FLAGS = @LD_FLAGS@
|
|
INSTALL = @INSTALL@
|
|
LIBS = @LIBS@
|
|
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
libdir = @libdir@
|
|
libexecdir = @libexecdir@
|
|
bindir = @bindir@
|
|
transform=@program_transform_name@
|
|
EXECSUFFIX=@EXECSUFFIX@
|
|
|
|
PROG_BIN = sample_client$(EXECSUFFIX) \
|
|
simple_client$(EXECSUFFIX)
|
|
PROG_LIBEXEC = sample_server$(EXECSUFFIX) \
|
|
simple_server$(EXECSUFFIX)
|
|
PROGS = $(PROG_BIN) $(PROG_LIBEXEC)
|
|
|
|
OBJECTS = sample_client.o sample_server.o simple_client.o simple_server.o
|
|
SOURCES = sample_client.c sample_server.c simple_client.c simple_server.c
|
|
|
|
all: $(PROGS)
|
|
|
|
Wall:
|
|
make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
|
|
|
|
.c.o:
|
|
$(CC) -c $(DEFS) -I../../include -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $<
|
|
|
|
install: all
|
|
|
|
uninstall:
|
|
|
|
TAGS: $(SOURCES)
|
|
etags $(SOURCES)
|
|
|
|
check:
|
|
|
|
clean:
|
|
rm -f *.a *.o $(PROGS)
|
|
|
|
mostlyclean: clean
|
|
|
|
distclean: clean
|
|
rm -f Makefile *.tab.c *~
|
|
|
|
realclean: distclean
|
|
rm -f TAGS
|
|
|
|
KLIB=-L../../lib/krb -lkrb -L../../lib/des -ldes
|
|
LIBROKEN=-L../../lib/roken -lroken
|
|
|
|
sample_client$(EXECSUFFIX): sample_client.o
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ sample_client.o $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
|
|
|
simple_client$(EXECSUFFIX): simple_client.o
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ simple_client.o $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
|
|
|
sample_server$(EXECSUFFIX): sample_server.o
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ sample_server.o $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
|
|
|
simple_server$(EXECSUFFIX): simple_server.o
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ simple_server.o $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
|
|
|
$(OBJECTS): ../../include/config.h
|
|
|
|
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean
|