blob: 45d218eebd9ffd3c56dbf6844e11697101415b30 [file] [log] [blame]
Uwe Hermann1ae8e832007-09-01 20:20:41 +00001##
2## This file is part of the LinuxBIOS project.
3##
4## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; either version 2 of the License, or
9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License
17## along with this program; if not, write to the Free Software
18## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19##
20
21PROGRAM = superiotool
22
23CC = gcc
24INSTALL = /usr/bin/install
25PREFIX = /usr/local
26
Uwe Hermannde24a0e2007-09-19 00:03:14 +000027# TODO: -pedantic
Uwe Hermann1ae8e832007-09-01 20:20:41 +000028CFLAGS = -O2 -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \
Uwe Hermannde24a0e2007-09-19 00:03:14 +000029 -Werror-implicit-function-declaration -ansi
Uwe Hermann1ae8e832007-09-01 20:20:41 +000030
Uwe Hermann945045b2007-09-28 15:39:10 +000031OBJS = superiotool.o ali.o fintek.o ite.o nsc.o smsc.o winbond.o
Uwe Hermann0120e1a2007-09-16 18:11:03 +000032
Uwe Hermann1ae8e832007-09-01 20:20:41 +000033all: $(PROGRAM)
34
Uwe Hermannd754d2c2007-09-18 23:30:24 +000035$(PROGRAM): $(OBJS) superiotool.h
Uwe Hermann0120e1a2007-09-16 18:11:03 +000036 $(CC) $(CFLAGS) -o $(PROGRAM) $(OBJS)
Uwe Hermann1ae8e832007-09-01 20:20:41 +000037
38install: $(PROGRAM)
39 $(INSTALL) $(PROGRAM) $(PREFIX)/bin
40
Stefan Reinauer6a5bc462007-01-17 10:57:42 +000041clean:
Uwe Hermann0120e1a2007-09-16 18:11:03 +000042 rm -f $(PROGRAM) *.o
Uwe Hermann1ae8e832007-09-01 20:20:41 +000043
44.PHONY: all install clean
45