# # A GNU Makefile - for Hammerhead/Jackhammer # # $Id: Makefile.in,v 1.8 2002/11/13 03:14:22 dredd Exp $ # $Source: /cvsroot/hammerhead/hammerhead/Makefile.in,v $ # $Revision: 1.8 $ # $Date: 2002/11/13 03:14:22 $ # $State: Exp $ # # Author: Geoff Wong # TARGET_OS=$(shell uname) INSTALL=install include vsn.mk include hammer.mk # # Some operating system dependent trickery # OBJPATH=obj/$(TARGET_OS)/ BINPATH=bin/$(TARGET_OS)/ #HACKPATH=$(shell echo $(OBJPATH) | sed -e "s/\//\\\\\//g") #VPATH=$(OBJPATH) DEFS=-D_REENTRANT -D$(TARGET_OS) # # Libs # ifeq ($(TARGET_OS),FreeBSD) # assumes 2.2.7/2.2.8 CC=g++ -pthread LIBS= INCLUDE= CFLAGS=-g -Wall -D_THREAD_SAFE $(INCLUDE) endif ifeq ($(TARGET_OS),Linux) # Redhat 5.2 / Redhat 6.0 LIBS=-lc -ldl -lpthread INCLUDE= CFLAGS=-g -Wall $(INCLUDE) endif ifeq ($TARGET_OS,SunOS) LIBS=-lsocket -lnsl -lc -ldl -lpthread INCLUDE= CFLAGS=-g -Wall $(INCLUDE) endif all: src doc install: .PHONY cd src; $(MAKE) install -mkdir -p $(mandir)/man1 -$(INSTALL) doc/hammerhead.1 $(mandir)/man1/ src: .PHONY cd src; $(MAKE) doc: .PHONY cd doc; $(MAKE) # # Package for release # Should be fixed to ignore CVS directories on build # (perhaps use a Manifest) # clean: .PHONY -rm config.cache Makefile hammer.mk cd src; $(MAKE) clean .PHONY: