Python CSC Electronic Office
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
675 B

CFLAGS ?= -ggdb -Wall -O2
CFLAGS += -I../include
LIBCEO_OBJECTS := util.o common.o config.o parser.o ldap.o krb5.o kadm.o addhomedir.o
LIBCEO_LDFLAGS := -lacl -lldap $(shell krb5-config --libs krb5 kadm-client)
PREFIX := /usr/local
all: addmember addclub
rm -f addmember addclub config-test *.o
addmember: $(LIBCEO_OBJECTS) addmember.o
addclub: $(LIBCEO_OBJECTS) addclub.o
config-test: config-test.o parser.o util.o
$(CC) $(LDFLAGS) $^ -o $@
install: addmember addclub
install -d $(DESTDIR)$(PREFIX)/bin
install addmember addclub $(DESTDIR)$(PREFIX)/bin