# cvsid: $Id: Makefile.sample,v 1.3.2.3 2007/10/23 08:58:54 rjs Exp $
#
# sample Makefile for PCOS applications
# This may have to be changed for your build environment


# on HP-UX add -AA
CXXFLAGS= -I../c/include
CPPFLAGS= -I../c/include

LDFLAGS	= -L../c/lib
# use the following for HP-UX
#LDFLAGS = -L../c/lib pcos.o -lpcos -lm
LDLIBS	= pcos.o -lpcos -lm
# use the following for Mac OS X...
#LDLIBS	= pcos.o -lpcos -lm -framework ApplicationServices

# ...and make sure to set the search path for dynamic libraries, e.g.
# (in the shell) unless you already installed PCOS in the system:

#DYLD_LIBRARY_PATH=./lib make test

PROGS	= \
	dumper

all: pcos.o $(PROGS)

test: all
	dumper ../../doc/pCOS-license.pdf

clean:
	rm -f $(PROGS) *.o
