TARGETS = client mycat nanoscale CC = @CC@ CFLAGS = @CFLAGS@ EXTRA_CFLAGS = -Wall DEFINES = @DEFINES@ CC_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDES) LDFLAGS = @LDFLAGS@ bindir = @bindir@ datadir = @datadir@ datarootdir = @datarootdir@ exec_prefix = @exec_prefix@ includedir = @includedir@ libdir = @libdir@ mandir = @mandir@ prefix = @prefix@ srcdir = @srcdir@ VPATH = $(srcdir) INSTALL = @INSTALL@ INSTALL_PROGRAM = ${INSTALL} -m 555 INSTALL_DATA = ${INSTALL} -m 444 INSTALL_SCRIPT = ${INSTALL} -m 444 SERVER_OBJS = server.o CLIENT_OBJS = client.o clientlib.o .PHONY: all install clean distclean all: $(TARGETS) nanoscale: $(SERVER_OBJS) $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS) install: nanoscale $(INSTALL_PROGRAM) -D nanoscale $(bindir)/nanoscale client: $(CLIENT_OBJS) .c.o: $(CC) $(CC_SWITCHES) -o $@ -c $< clean: rm -rf a.out $(SERVER_OBJS) *~ core* $(TARGETS) *.log *.tmp logfile* .deps/*.d distclean: clean rm Makefile