summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4c7597b3dd0c3e1efba41f27db55c3c05e4dde33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TARGET := service_passwords
CFLAGS := -D_REENTRANT -fPIC -Wall -Wextra $(CFLAGS)

all: $(TARGET).so

clean:
	$(RM) $(TARGET).o $(TARGET).so
	$(RM) -r html/ latex/

$(TARGET).so: $(TARGET).o
	gcc $(LDFLAGS) -shared -Wl,-soname,$(TARGET) -llber -o $@ $(OBJS)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $^

doc:
	doxygen Doxyfile

install: all
	install -D $(TARGET).so $(DESTDIR)/usr/lib/ldap/$(TARGET).so