5 # Makefile for the GNOKII tool suite.
7 # Copyright (C) 1999 Hugh Blemings & Pavel JanÃk ml.
12 # For this common directory is used "subsystem.o" .o files concept.
13 # (the list of object files to be linked together (to COMMON.o),
14 # and other dirs is used this _one_ file (instead of all OBJS)
18 include $(TOPDIR)/Makefile.global
34 all: libgnokii.so gsm-filetypes.o
37 $(MAKE) -C phones PHONES.o
40 $(MAKE) -C links LINKS.o
43 $(MAKE) -C devices DEVICES.o
45 libgnokii.so: $(OBJS) phones/PHONES.o links/LINKS.o devices/DEVICES.o
46 $(CC) -shared -o libgnokii.so $(OBJS) phones/PHONES.o links/LINKS.o devices/DEVICES.o
48 gsm-filetypes.o: gsm-filetypes.c
49 $(CC) $(CFLAGS) $(CPPFLAGS) $(XPM_CFLAGS) -c gsm-filetypes.c
52 $(LEX) -ovcal.c vcal.lx
55 $(RM) $(OBJS) *~ depend libgnokii.so gsm-filetypes.o vcal.c phones/PHONES.o links/LINKS.o devices/DEVICES.o
58 $(INSTALL) -d $(libdir)
59 $(INSTALL) libgnokii.so $(libdir)
63 $(CC) $(CFLAGS) -MM *.c >depend
65 ifeq (depend,$(wildcard depend))
70 .PHONY: all install clean dep depend