chiark / gitweb /
[PATCH] chassis_id: clean compilation and fix bad function parameter passing
[elogind.git] / extras / chassis_id / Makefile
1 # * 
2 # * Makefile
3 # *
4 # * Copyright (C) 2004 Intel Corporation.  All rights reserved.
5 # *
6 # * This program is free software; you can redistribute it and/or
7 # * modify it under the terms of the GNU General Public
8 # * License v2.0 as published by the Free Software Foundation; 
9 # *
10 # * This program is distributed in the hope that it will be useful,
11 # * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # * General Public License for more details.
14 # *
15 # * You should have received a copy of the GNU General Public
16 # * License along with this program; if not, write to the
17 # * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 # * Boston, MA 021110-1307, USA.
19 # *
20 # * Authors: Atul Sabharwal
21 # *          
22 # *
23
24 TARGET = chassis_id
25
26 exec_prefix =   ${prefix}
27 sbindir =       ${exec_prefix}/sbin
28 INSTALL = /usr/bin/install -c
29 INSTALL_PROGRAM = ${INSTALL}
30 INSTALL_DATA  = ${INSTALL} -m 644
31 all:    chassis_id
32
33 ifneq ($(strip $(USE_KLIBC)),true)
34 chassis_id:     chassis_id.c table.c
35         $(QUIET) $(CC) -o $(TARGET) $(CFLAGS) chassis_id.c table.c
36
37 install: all
38         $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
39 else
40 chassis_id:
41         @echo
42         @echo "!!! chassis_id is incompatible with klibc !!!"
43         @echo
44         @exit 0
45
46 install: all
47 endif
48
49 clean:
50         rm -rf core a.out $(TARGET)
51