http://marcin-wiacek.fkn.pl/english/zips/mygnokii.tar.gz
[gnokii.git] / utils / Makefile
1
2 #
3 # Makefile for the GNOKII tool suite.
4 #
5 # Copyright (C) 1999 Hugh Blemings & Pavel Janík ml.
6 #               2000 Karel Zak
7 #
8
9 TOPDIR=..
10 include $(TOPDIR)/Makefile.global
11
12 OBJS = mgnokiidev.o
13
14 all: mgnokiidev
15
16 mgnokiidev: $(OBJS) 
17
18 makelib: $(OBJS)
19         $(CC) $(LDFLAGS) $(OBJS) -o mgnokiidev
20         
21 clean:
22         $(RM) $(OBJS) *~ depend mgnokiidev *.exe core *.bak
23
24 install: all
25         $(INSTALL) -d $(sbindir)
26         $(INSTALL) mgnokiidev $(sbindir)
27         $(INSTALL) todologo $(bindir)
28         $(INSTALL) sendsms $(bindir)
29         
30 install-strip: all
31         $(INSTALL) -d $(sbindir)
32         $(INSTALL) -s mgnokiidev $(sbindir)
33         $(INSTALL) todologo $(bindir)
34         $(INSTALL) sendsms $(bindir)
35         
36 install-suid: all
37         $(INSTALL) -d $(sbindir)
38         $(INSTALL) -o root -g gnokii -m 4750 mgnokiidev $(sbindir)
39         $(INSTALL) todologo $(bindir)
40         $(INSTALL) sendsms $(bindir)
41         
42 install-ss: all
43         $(INSTALL) -d $(sbindir)
44         $(INSTALL) -o root -g gnokii -m 4750 -s mgnokiidev $(sbindir)
45         $(INSTALL) todologo $(bindir)
46         $(INSTALL) sendsms $(bindir)    
47         
48 depend dep:
49         $(CC) $(CFLAGS) -MM *.c >depend
50
51 ifeq (depend,$(wildcard depend))
52 include depend
53 endif
54
55
56 .PHONY: all install clean dep depend
57