#
# Copyright (c) 2003 Linuxant inc.
# Copyright (c) 2001-2003 Conexant Systems, Inc.
#
# NOTE: The use and distribution of this software is governed by the terms in
# the file LICENSE, which is included in the package. You must read this and
# agree to these terms before using or distributing this software.
# 
TOP= ..

include $(TOP)/config.mak
-include $(TOP)/imported/makeflags.mak

OBJS= firm2bin.o

CFLAGS =	-I../imported/include -I../modules/osspec/include
CFLAGS +=	$(IMPORTED_FRAMEWORK_DEFS) $(IMPORTED_GENERAL_DEFS)

CFLAGS += -O2 -Wall

all: hsffirm2bin

clean:
	rm -f *.o hsffirm2bin

install: hsffirm2bin $(HSFSBINDIR) $(HSFETCDIR)
	$(INSTALL) -m 755 hsffirm2bin $(HSFSBINDIR)/hsffirm2bin
	$(INSTALL) -m 644 cnxykf.hex $(HSFETCDIR)

$(HSFSBINDIR) $(HSFETCDIR):
	$(MKDIR) -p $@

hsffirm2bin: $(OBJS)
	$(CC) -o $@ $^

uninstall:
	rm -f "$(HSFSBINDIR)/hsffirm2bin" "$(HSFETCDIR)/cnxykf.hex"
