OSSP CVS Repository

ossp - ossp-pkg/var/Makefile
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/var/Makefile
# Build the OSSP var library.

CC		= gcc
AR		= ar
RANLIB 		= ranlib
POD2MAN		= pod2man

WARNFLAGS	= -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Winline \
		  -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
OPTFLAGS	= -pipe -O4
CPPFLAGS	= #-DDEBUG
CFLAGS		=
LDFLAGS		=

OBJS		= var.o

.c.o:
	$(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) -c $<

all:	libvar.a var.3

libvar.a:	$(OBJS)
	@rm -f $@
	$(AR) cr $@ $(OBJS)
	$(RANLIB) $@

var_test:	var_test.o libvar.a
	$(CC) $(LDFLAGS) -o $@ var_test.o libvar.a

var.3:		var.pod
	$(POD2MAN) var.pod >$@

check:		var_test
	@./var_test && echo "All tests succeeed."

clean::
	rm -f $(OBJS) libvar.a var_test.o var_test var.3

# Dependencies

var.o: var.h
var_test.o: var.h

CVSTrac 2.0.1