chiark / gitweb /
141d23c7b817c42aa38d40e5f643d55ab48ec9c0
[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 CFLAGS = -g 
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 chassis_id:     chassis_id.c table.c
34         gcc -o $(TARGET) $(CFLAGS) chassis_id.c table.c
35
36 clean:  
37         rm -rf core a.out $(TARGET)
38
39 install: all
40         $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
41