2009-07-28 10:46:53 -04:00
###############################################################################
###############################################################################
##
2009-09-23 12:04:32 -04:00
## Copyright (C) 2009 Red Hat, Inc.
2009-07-28 10:46:53 -04:00
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions
## of the GNU General Public License v.2.
##
###############################################################################
###############################################################################
2009-08-17 09:58:06 -04:00
i n c l u d e . . / M a k e f i l e . t o p
2009-07-28 10:46:53 -04:00
TARGETS = libfence_virt.a
libfence_virt_a_SOURCE = mcast.c ip_lookup.c simple_auth.c tcp.c \
2009-08-31 09:37:21 -04:00
debug.c simple_auth.c fdops.c log.c
2009-07-28 10:46:53 -04:00
2009-09-15 15:17:14 -04:00
INCLUDES = -I../include ` nss-config --cflags` ` nspr-config --cflags`
2009-07-28 10:46:53 -04:00
all : ${TARGETS }
libfence_virt.a : ${libfence_virt_a_SOURCE :.c =.o }
ar rc $@ $^
2019-04-09 15:38:06 +02:00
fdops.o : fdops .c
$( CC) $( CFLAGS) -fPIC -c -o $@ $^ $( INCLUDES)
ip_lookup.o : ip_lookup .c
$( CC) $( CFLAGS) -fPIC -c -o $@ $^ $( INCLUDES)
mcast.o : mcast .c
$( CC) $( CFLAGS) -fPIC -c -o $@ $^ $( INCLUDES)
tcp.o : tcp .c
$( CC) $( CFLAGS) -fPIC -c -o $@ $^ $( INCLUDES)
2009-07-28 10:46:53 -04:00
%.o : %.c
2019-05-07 15:46:33 +03:00
$( CC) $( CFLAGS) -fPIC -c -o $@ $^ $( INCLUDES)
2009-07-28 10:46:53 -04:00
clean :
rm -f ${ TARGETS } *~ *.o testprog
install :