blob: 9b9a0d53c3e03f40320e48d1c96d14342ad0171e (
plain)
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
|
#
# $Header: /cvsroot/m2300w/m2300w/src/Makefile.in,v 1.3 2005/10/06 19:55:04 gfuer Exp $
#
# Copyright (C) 2004 Gerhard Fuernkranz
#
# 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.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
CC = @CC@
CFLAGS = @CFLAGS@ @CPPFLAGS@
LIBS = @LDFLAGS@ @LIBS@
INSTALL = @INSTALL@
@SET_MAKE@
INSTROOT=
NAME = @PACKAGE_NAME@
VERSION = @PACKAGE_VERSION@
PREFIX = @prefix@
BINDIR = $(INSTROOT)$(PREFIX)/bin
SHARE = $(INSTROOT)$(PREFIX)/share/$(NAME)/$(VERSION)
PROGS = m2300w m2400w m2300w-wrapper
all: m2300w m2400w
m2300w: m2300w.c
$(CC) $(CFLAGS) -o m2300w m2300w.c $(LIBS)
m2400w: m2400w.c
$(CC) $(CFLAGS) -o m2400w m2400w.c $(LIBS)
install: all $(PROGS)
chmod 755 m2300w-wrapper
rm -f $(BINDIR)/m2300w $(BINDIR)/m2300w_wrapper
$(INSTALL) -d -m 755 $(BINDIR)
$(INSTALL) -d -m 755 $(SHARE)
for P in $(PROGS) ; do \
$(INSTALL) -m 755 $$P $(BINDIR); \
done
clean:
rm -f m2300w m2400w
distclean: clean
rm -f Makefile m2300w-wrapper
|