waffle

user and group backend daemon
git clone git://git.2f30.org/waffle
Log | Files | Refs | LICENSE

Makefile (546B)


      1 VERSION = 0.0
      2 
      3 PREFIX = /usr/local
      4 
      5 CPPFLAGS = -D_DEFAULT_SOURCE -DLDAP_DEPRECATED
      6 CFLAGS = -std=c99 -Wall
      7 LDFLAGS = -s
      8 LDLIBS = -lldap -llber
      9 
     10 OBJ =\
     11 	backend.o\
     12 	dummy.o\
     13 	ldap.o\
     14 	req.o\
     15 	util.o\
     16 	waffle.o
     17 
     18 BIN = waffle
     19 
     20 all: $(BIN)
     21 
     22 $(BIN): $(OBJ)
     23 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)
     24 
     25 $(OBJ): arg.h paths.h proto.h waffle.h
     26 
     27 install: all
     28 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     29 	cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
     30 
     31 uninstall:
     32 	rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
     33 
     34 clean:
     35 	rm -f $(BIN) $(OBJ)
     36 
     37 .PHONY:
     38 	all install uninstall clean