# MOXA UC8418 PLATFORM=UC8400 #PLATFORM=ubuntu ifeq ($(PLATFORM),UC8400) PREFIX=xscale-linux- INCLUDE_DIR=/usr/local/xscale_sbgCom/src LIBRARY=/usr/local/xscale_lib ONAME=log_adv_em-mx else PREFIX= ONAME=log_adv_em endif CC=$(PREFIX)gcc STRIP=$(PREFIX)strip LIBRARY=. CFLAGS=-Wall CXXFLAGS= OBJS=log_adv_em.o serial.o all: log_adv_em log_adv_em: $(OBJS) $(CC) $(CFLAGS) $(OBJS) -o $(ONAME) serial.o: serial.c serial.h $(CC) $(CFLAGS) -c serial.c clean: rm -f *.o > /dev/null 2>&1