3 # Makefile for the GNOKII tool suite.
5 # Copyright (C) 1999 Hugh Blemings & Pavel JanÃk ml.
10 include $(TOPDIR)/Makefile.global
19 OBJS += $(TOPDIR)/getopt/libgetopt.a
22 LDFLAGS += -L$(TOPDIR)/common -lgnokii
26 gnokii: $(OBJS) $(TOPDIR)/common/gsm-filetypes.o
28 $(TOPDIR)/common/gsm-filetypes.o:
29 $(MAKE) -C $(TOPDIR)/common gsm-filetypes.o
31 $(TOPDIR)/getopt/libgetopt.a:
32 $(MAKE) -C $(TOPDIR)/getopt
35 $(RM) $(OBJS) *~ depend gnokii *.exe core *.bak
38 $(INSTALL) -d $(bindir)
39 $(INSTALL) gnokii $(bindir)
42 $(INSTALL) -d $(bindir)
43 $(INSTALL) -s gnokii $(bindir)
47 @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \
48 /usr/sbin/groupadd gnokii; \
50 $(INSTALL) -d $(bindir)
51 $(INSTALL) -o root -g gnokii -m 0750 gnokii $(bindir)
55 @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \
56 /usr/sbin/groupadd gnokii; \
58 $(INSTALL) -d $(bindir)
59 $(INSTALL) -o root -g gnokii -m 0750 -s gnokii $(bindir)
63 $(CC) $(CFLAGS) -MM *.c >depend
65 ifeq (depend,$(wildcard depend))
69 .PHONY: all install clean dep depend