OBJS=	ed5.o rc5.o flashRW.o \
	/mnt/hdd/ver0916_flash_4mb/uClinux/uC-src/amit_lib/support.lib

ifeq ($(UCLIBC), uClibc-0.9.9)
SOBJS += error.o
endif
ifeq ($(UCLIBC), uC-libc)
SOBJS += error.o
endif

all: ed myinstall

ed:	$(OBJS)
	${LD} $(LDFLAGS) -o ed ${LIBS} ${OBJS} ${LDADD} 

clean:
	rm -f *.[oa] *.elf *~ core ed *.gdb
	
myinstall:
	$(CP) ed /home/hsujp
	echo
	ls -al /home/hsujp/ed
	cp -f /home/hsujp/ed /home/hsujp/bin2/.
	echo
	
$(OBJS): usercfg5.h amit5.h

