xref: /rk3399_rockchip-uboot/tools/env/Makefile (revision 6de66b35426312a21174a9bf0576a094e2904bea)
16aff3115Swdenk#
2f9328639SMarian Balakowicz# (C) Copyright 2002-2006
36aff3115Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
46aff3115Swdenk#
56aff3115Swdenk# See file CREDITS for list of people who contributed to this
66aff3115Swdenk# project.
76aff3115Swdenk#
86aff3115Swdenk# This program is free software; you can redistribute it and/or
96aff3115Swdenk# modify it under the terms of the GNU General Public License as
106aff3115Swdenk# published by the Free Software Foundation; either version 2 of
116aff3115Swdenk# the License, or (at your option) any later version.
126aff3115Swdenk#
136aff3115Swdenk# This program is distributed in the hope that it will be useful,
146aff3115Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
156aff3115Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
166aff3115Swdenk# GNU General Public License for more details.
176aff3115Swdenk#
186aff3115Swdenk# You should have received a copy of the GNU General Public License
196aff3115Swdenk# along with this program; if not, write to the Free Software
206aff3115Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
216aff3115Swdenk# MA 02111-1307 USA
226aff3115Swdenk#
236aff3115Swdenk
24f9328639SMarian Balakowiczinclude $(TOPDIR)/config.mk
25f9328639SMarian Balakowicz
26f9328639SMarian BalakowiczSRCS	:= $(obj)crc32.c  fw_env.c  fw_env_main.c
276aff3115SwdenkHEADERS	:= fw_env.h
286aff3115Swdenk
29f9328639SMarian BalakowiczCPPFLAGS := -Wall -DUSE_HOSTCC
306aff3115Swdenk
31*6de66b35SMarkus Klotzbücherifeq ($(MTD_VERSION),old)
32*6de66b35SMarkus KlotzbücherCPPFLAGS += -DMTD_OLD
33*6de66b35SMarkus Klotzbücherendif
34*6de66b35SMarkus Klotzbücher
35f9328639SMarian Balakowiczall:	$(obj)fw_printenv
36f9328639SMarian Balakowicz
37f9328639SMarian Balakowicz$(obj)fw_printenv:	$(SRCS) $(HEADERS)
38f9328639SMarian Balakowicz	$(CROSS_COMPILE)gcc $(CPPFLAGS) $(SRCS) -o $(obj)fw_printenv
396aff3115Swdenk
406aff3115Swdenkclean:
41f9328639SMarian Balakowicz	rm -f $(obj)fw_printenv $(obj)crc32.c
426aff3115Swdenk
43f9328639SMarian Balakowicz$(obj)crc32.c:
44f9328639SMarian Balakowicz	ln -s $(src)../../lib_generic/crc32.c $(obj)crc32.c
456aff3115Swdenk
466aff3115Swdenk#########################################################################
476aff3115Swdenk
48f9328639SMarian Balakowiczinclude $(TOPDIR)/rules.mk
496aff3115Swdenk
50f9328639SMarian Balakowiczsinclude $(obj).depend
516aff3115Swdenk
526aff3115Swdenk#########################################################################
53