3 # Makefile for the GNOKII tool suite.
5 # Copyright (C) 1999 Hugh Blemings & Pavel JanÃk ml.
10 include $(TOPDIR)/Makefile.global
12 CFLAGS += $(PTHREAD_CFLAGS)
13 LDFLAGS += $(PTHREAD_LIBS)
19 gnokiid: $(OBJS) $(TOPDIR)/common/COMMON.o $(TOPDIR)/common/DATA.o
21 $(TOPDIR)/common/COMMON.o:
22 $(MAKE) -C $(TOPDIR)/common COMMON.o
24 $(TOPDIR)/common/DATA.o:
25 $(MAKE) -C $(TOPDIR)/common DATA.o
27 $(TOPDIR)/common/libmygnokii.so:
28 $(MAKE) -C $(TOPDIR)/common makelib
30 makelib: $(OBJS) $(TOPDIR)/common/libmygnokii.so
31 $(CC) $(LDFLAGS) -L$(TOPDIR)/common -lmygnokii $(OBJS) -o gnokiidlib
34 $(RM) $(OBJS) *~ depend gnokiid gnokiidlib *.exe core *.bak
37 $(INSTALL) -d $(sbindir)
38 $(INSTALL) gnokiid $(sbindir)
39 $(INSTALL) gnokiidlib $(sbindir)/gnokiid
42 $(INSTALL) -d $(sbindir)
43 $(INSTALL) -s gnokiid $(sbindir)
44 $(INSTALL) -s gnokiidlib $(sbindir)/gnokiid
48 @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \
49 /usr/sbin/groupadd gnokii; \
51 $(INSTALL) -d $(sbindir)
52 $(INSTALL) -o root -g gnokii -m 4750 gnokiid $(sbindir)
53 $(INSTALL) -o root -g gnokii -m 4750 gnokiidlib $(sbindir)/gnokiid
57 @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \
58 /usr/sbin/groupadd gnokii; \
60 $(INSTALL) -d $(sbindir)
61 $(INSTALL) -o root -g gnokii -m 4750 -s gnokiid $(sbindir)
62 $(INSTALL) -o root -g gnokii -m 4750 -s gnokiidlib $(sbindir)/gnokiid
66 $(CC) $(CFLAGS) -MM *.c >depend
68 ifeq (depend,$(wildcard depend))
72 .PHONY: all install clean dep depend