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
35 all: libgnokii.a gsm-filetypes.o
38 $(MAKE) -C phones PHONES.o
41 $(MAKE) -C links LINKS.o
44 $(MAKE) -C devices DEVICES.o
46 libgnokii.a: $(OBJS) phones/PHONES.o links/LINKS.o devices/DEVICES.o
48 # $(CC) -shared -o libgnokii.so $(OBJS) phones/PHONES.o links/LINKS.o devices/DEVICES.o
50 gsm-filetypes.o: gsm-filetypes.c
51 $(CC) $(CFLAGS) $(CPPFLAGS) $(XPM_CFLAGS) -c gsm-filetypes.c
54 $(LEX) -ovcal.c vcal.lx
57 $(RM) $(OBJS) *~ depend COMMON.o gsm-filetypes.o vcal.c phones/PHONES.o links/LINKS.o devices/DEVICES.o *.a
60 $(INSTALL) -d $(libdir)
61 $(INSTALL) libgnokii.so $(libdir)
65 $(CC) $(CFLAGS) -MM *.c >depend
67 ifeq (depend,$(wildcard depend))
72 .PHONY: all install clean dep depend