aefedc8de1241263fe2779ae351054c669d88c27
[gnokii.git] / common / devices / Makefile
1
2 #
3 # $Id$
4 #
5 # Makefile for the GNOKII tool suite.
6 #
7 # Copyright (C) 1999 Hugh Blemings & Pavel Janík ml.
8 #               2000 Karel Zak
9 #
10
11 #
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)
15 #
16
17 TOPDIR=../..
18 include $(TOPDIR)/Makefile.global
19
20 OBJS =  tekram.o
21
22 ifdef WIN32
23         OBJS += $(TOPDIR)/win32/winserial.o
24 else
25         OBJS += unixserial.o \
26                 unixirda.o
27 endif
28
29 all: DEVICES.o
30
31 DEVICES.o: $(OBJS)
32         $(LD) DEVICES.o $(OBJS)
33
34 clean:
35         $(RM) $(OBJS) *~ depend LINKS.o
36
37 install:
38         @echo
39
40 depend dep:
41         $(CC) $(CFLAGS) -MM *.c >depend
42
43 ifeq (depend,$(wildcard depend))
44 include depend
45 endif
46
47
48 .PHONY: all install clean dep depend
49