File: Makefile

package info (click to toggle)
irda-utils 0.9.18-15
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,212 kB
  • ctags: 1,547
  • sloc: ansic: 8,400; makefile: 422; sh: 405; perl: 83
file content (85 lines) | stat: -rw-r--r-- 2,183 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
######################################################################
##                
## Filename:      Makefile
## Version:       
## Description:   Makefile for Linux IrDA Manager
## Status:        Experimental.
## Author:        Dag Brattli <dagb@cs.uit.no>
## Created at:    Thu Feb 19 00:10:23 1998
## Modified at:   Wed Oct  6 20:22:18 1999
## Modified by:   Dag Brattli <dagb@cs.uit.no>
## 
## $Id: Makefile 115 2006-02-28 22:16:46Z sambau $
##
##     Copyright (c) 1998-1999 Dag Brattli, All Rights Reserved.
##      
##     This program is free software; you can redistribute it and/or 
##     modify it under the terms of the GNU General Public License as 
##     published by the Free Software Foundation; either version 2 of 
##     the License, or (at your option) any later version.
##  
##     Neither Dag Brattli nor University of Troms admit liability nor
##     provide warranty for any of this software. This material is 
##     provided "AS-IS" and at no charge.
##     
######################################################################
include ../output.mak

CC           = gcc
LD           = ld
RM           = rm -f
CFLAGS       = $(DEB_CFLAGS) -W -Wall -Wstrict-prototypes -Wshadow $(SYS_INCLUDES)

SYS_INCLUDES = -I/usr/include
SYS_LIBPATH  = -L/usr/lib -L/usr/local/lib 

INCLUDES     = $(SYS_INCLUDES) -I../include/
LIBRARIES    = $(SYS_LIBRARIES)
LIBPATH      = $(SYS_LIBPATH)

TARGETS      = irattach dongle_attach

all: $(TARGETS)


.c.o:
	$(prn_cc)
	$(ECMD)$(CC) $(CFLAGS) $(INCLUDES) -c $<


irattach: irattach.o util.o
	$(prn_cc_o)
	$(ECMD)$(CC) $(DEB_LDFLAGS) $(CFLAGS) irattach.o util.o -o $@



dongle_attach: dongle_attach.o
	$(prn_cc_o)
	$(ECMD)$(CC) $(DEB_LDFLAGS) $(CFLAGS) dongle_attach.o -o $@


install: $(TARGETS)
	$(prn_install)
	$(ECMD)install irattach $(ROOT)/usr/sbin
	$(ECMD)install dongle_attach $(ROOT)/usr/sbin


clean: 
	$(ECMD)$(RM) *.BAK *.bak *.o ,* *~ *.a


distclean:
	$(ECMD)$(RM) *.BAK *.bak *.o ,* *~ *.a
	$(ECMD)$(RM) irattach dongle_attach


tags:
	$(prn_etags)
	$(ECMD)etags *.[hc] */*.[hc] */*/*.[hc]


depend:
	$(prn_depend)
	$(ECMD)makedepend -s "# DO NOT DELETE" -- $(INCLUDES) -- $(SRCS)

# DO NOT DELETE