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) -L../common -lgnokii
19 gnokiid: $(OBJS) $(TOPDIR)/common/libgnokii.so $(TOPDIR)/common/data/DATA.o
21 $(TOPDIR)/common/libgnokii.so:
22 $(MAKE) -C $(TOPDIR)/common libgnokii.so
24 $(TOPDIR)/common/data/DATA.o:
25 $(MAKE) -C $(TOPDIR)/common/data DATA.o
28 $(RM) $(OBJS) *~ depend gnokiid *.exe core *.bak
31 $(INSTALL) -d $(sbindir)
32 $(INSTALL) gnokiid $(sbindir)
35 $(INSTALL) -d $(sbindir)
36 $(INSTALL) -s gnokiid $(sbindir)
40 @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \
41 /usr/sbin/groupadd gnokii; \
43 $(INSTALL) -d $(sbindir)
44 $(INSTALL) -o root -g gnokii -m 4750 gnokiid $(sbindir)
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 -s gnokiid $(sbindir)
56 $(CC) $(CFLAGS) -MM *.c >depend
58 ifeq (depend,$(wildcard depend))
62 .PHONY: all install clean dep depend