# 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_pcadp_em-mx else PREFIX= ONAME=log_pcadp_em endif CC=$(PREFIX)gcc STRIP=$(PREFIX)strip LIBRARY=. CFLAGS=-Wall CXXFLAGS= OBJS=log_pcadp_em.o serial.o all: log_pcadp_em log_pcadp_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