3 # Makefile for the GNOKII tool suite.
5 # Copyright (C) 1999 Hugh Blemings & Pavel JanÃk ml.
10 include $(TOPDIR)/Makefile.global
13 CFLAGS += $(PTHREAD_CFLAGS)
14 LDFLAGS += $(PTHREAD_LIBS)
24 OBJS += $(TOPDIR)/getopt/libgetopt.a
29 gnokii: $(OBJS) $(TOPDIR)/common/libgnokii.a $(TOPDIR)/common/gsm-filetypes.o
31 $(TOPDIR)/common/COMMON.o:
32 $(MAKE) -C $(TOPDIR)/common libgnokii.a
34 $(TOPDIR)/common/gsm-filetypes.o:
35 $(MAKE) -C $(TOPDIR)/common gsm-filetypes.o
37 $(TOPDIR)/getopt/libgetopt.a:
38 $(MAKE) -C $(TOPDIR)/getopt
41 $(RM) $(OBJS) *~ depend gnokii *.exe core *.bak
44 $(INSTALL) -d $(bindir)
45 $(INSTALL) gnokii $(bindir)
48 $(INSTALL) -d $(bindir)
49 $(INSTALL) -s gnokii $(bindir)
53 @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \
54 /usr/sbin/groupadd gnokii; \
56 $(INSTALL) -d $(bindir)
57 $(INSTALL) -o root -g gnokii -m 0750 gnokii $(bindir)
61 @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \
62 /usr/sbin/groupadd gnokii; \
64 $(INSTALL) -d $(bindir)
65 $(INSTALL) -o root -g gnokii -m 0750 -s gnokii $(bindir)
69 $(CC) $(CFLAGS) -MM *.c >depend
71 ifeq (depend,$(wildcard depend))
75 .PHONY: all install clean dep depend