Blame utils/fwparam_ibft/Makefile

Packit eace71
#
Packit eace71
#  Copyright (C) IBM Corporation. 2007
Packit eace71
#  Author: Doug Maxey <dwm@austin.ibm.com>
Packit eace71
#
Packit eace71
#  This program is free software: you can redistribute it and/or modify
Packit eace71
#  it under the terms of the GNU General Public License as published by
Packit eace71
#  the Free Software Foundation, either version 2 of the License, or
Packit eace71
#  (at your option) any later version.
Packit eace71
#
Packit eace71
#  This program is distributed in the hope that it will be useful,
Packit eace71
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit eace71
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit eace71
#  GNU General Public License for more details.
Packit eace71
#
Packit eace71
#  You should have received a copy of the GNU General Public License
Packit eace71
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit eace71
#
Packit eace71
#  Authors: Patrick Mansfield <patmans@us.ibm.com>
Packit eace71
#	    Mike Anderson <andmike@us.ibm.com>
Packit eace71
#	    Doug Maxey <dwm@austin.ibm.com>
Packit eace71
#	    "Prasanna Mumbai" <mumbai.prasanna@gmail.com>
Packit eace71
#
Packit eace71
ifeq ($(TOPDIR),)
Packit eace71
	TOPDIR = ../..
Packit eace71
endif
Packit eace71
Packit eace71
Packit eace71
SYSDEPS_OBJS = $(sort $(wildcard ../sysdeps/*.o))
Packit eace71
OBJS := fw_entry.o fwparam_sysfs.o $(SYSDEPS_OBJS) \
Packit eace71
	$(TOPDIR)/usr/iscsi_net_util.o
Packit eace71
OBJS += prom_lex.o prom_parse.tab.o fwparam_ppc.o
Packit eace71
CLEANFILES = $(OBJS) *.output *~
Packit eace71
Packit eace71
CFLAGS ?= -O2 -g
Packit eace71
WARNFLAGS ?= -Wall -Wstrict-prototypes -Wno-format-truncation
Packit eace71
CFLAGS += -fPIC $(WARNFLAGS) -I$(TOPDIR)/include -I$(TOPDIR)/usr -D_GNU_SOURCE \
Packit eace71
	  -I$(TOPDIR)/libopeniscsiusr
Packit eace71
Packit eace71
LDFLAGS += -L$(TOPDIR)/libopeniscsiusr -liscsiusr
Packit eace71
Packit eace71
all: $(OBJS)
Packit eace71
Packit eace71
clean:
Packit eace71
	rm -f *.o $(CLEANFILES) .depend
Packit eace71
Packit eace71
$(OBJS): prom_parse.tab.h prom_parse.h fwparam_ibft.h
Packit eace71
Packit eace71
depend:
Packit eace71
	gcc $(CFLAGS) -M `ls *.c` > .depend
Packit eace71
Packit eace71
-include .depend