1# 2# Get values from configure script. 3# 4VERSION=@VERSION@ 5LIBVERSION=@LIBVERSION@ 6 7# 8# Enable really all warnings. This, though, gives 9# a warning due to pthread.h and unistd.h. 10# 11# -Wredundant-decls 12# 13CXX = @CXX@ 14CXXFLAGS = @CXXFLAGS@ @X_CFLAGS@ @DEFS@ \ 15 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 16 -Wmissing-declarations -Wnested-externs 17 18CXXINCLUDES = -I. -I../nxcomp 19 20CC = @CC@ 21CCFLAGS = $(CXXFLAGS) 22CCINCLUDES = -I. -I../nxcomp 23CCDEFINES = 24 25LDFLAGS = @LDFLAGS@ 26LIBS = @LIBS@ 27 28# 29# Only if THREADS is defined. 30# 31# LIBS = $(LIBS) -lpthread 32# 33 34srcdir = @srcdir@ 35prefix = @prefix@ 36exec_prefix = @exec_prefix@ 37bindir = @bindir@ 38man1dir = @mandir@/man1 39VPATH = @srcdir@ 40 41INSTALL = @INSTALL@ 42INSTALL_PROGRAM = @INSTALL_PROGRAM@ 43INSTALL_DATA = @INSTALL_DATA@ 44DESTDIR = 45RM_FILE = rm -f 46 47# 48# This should be autodetected. 49# 50 51MAKEDEPEND = @MAKEDEPEND@ 52DEPENDINCLUDES = -I/usr/include/g++ -I/usr/include/g++-3 53 54.SUFFIXES: .cpp.c 55 56.cpp.o: 57 $(CXX) -c $(CXXFLAGS) $(CXXINCLUDES) $(CXXDEFINES) $< 58.c.o: 59 $(CC) -c $(CCFLAGS) $(CCINCLUDES) $(CCDEFINES) $< 60 61PROGRAM = nxproxy 62 63all: depend $(PROGRAM) 64 65MSRC = Main.c 66 67CSRC = 68 69CXXSRC = 70 71MOBJ = $(MSRC:.c=.o) 72COBJ = $(CSRC:.c=.o) 73CXXOBJ = $(CXXSRC:.cpp=.o) 74 75$(PROGRAM): $(MOBJ) $(COBJ) $(CXXOBJ) 76 $(CXX) $(CXXFLAGS) -o $@ $(MOBJ) $(LDFLAGS) $(LIBS) 77 78depends: depend.status 79 80depend: depend.status 81 82depend.status: 83 if [ -n "$(MAKEDEPEND)" ] && [ -x "$(MAKEDEPEND)" ] ; then \ 84 $(MAKEDEPEND) $(CXXINCLUDES) $(CCINCLUDES) \ 85 $(DEPENDINCLUDES) -f Makefile $(MSRC) $(CSRC) $(CXXSRC) 2>/dev/null; \ 86 fi 87 touch depend.status 88 89install: install.bin install.man 90 91install.bin: $(PROGRAM) 92 $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 93 $(INSTALL_PROGRAM) $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM) 94 95install.man: 96 $(srcdir)/mkinstalldirs $(DESTDIR)$(man1dir) 97 $(INSTALL_DATA) man/$(PROGRAM).1 $(DESTDIR)$(man1dir)/$(PROGRAM).1 98 99uninstall: uninstall.bin uninstall.man 100 101uninstall.bin: 102 $(RM_FILE) $(DESTDIR)$(bindir)/$(PROGRAM) 103 104uninstall.man: 105 $(RM_FILE) $(DESTDIR)$(man1dir)/nxproxy.1 106 107clean: 108 -rm -f *~ *.o *.bak st?????? core core.* *.out.* \ 109 $(PROGRAM) $(PROGRAM).exe $(LIBFULL) $(LIBLOAD) $(LIBSHARED) $(LIBARCHIVE) 110 111distclean: clean 112 -rm -rf autom4te.cache config.status config.log config.cache depend.status Makefile tags configure 113