4 # * Copyright (C) 2004 Intel Corporation. All rights reserved.
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;
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.
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.
20 # * Authors: Atul Sabharwal
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
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
38 $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
42 @echo "!!! chassis_id is incompatible with klibc !!!"
50 rm -rf core a.out $(TARGET)