# Defined for UC-8410/8416/8418-LX # Note that if Posix shared memory is used (#define PSHM) # the -lrt is required to link to the real-time library librt (TLPI p. 1061) PLATFORM = UC8400 VER = DO_PSHM ifeq ($(PLATFORM),UC8400) PREFIX=xscale-linux- INCLUDE_DIR=/usr/local/xscale_sbgCom/src LIBRARY=/usr/local/xscale_lib TARGET=gm-mx else PREFIX= INCLUDE_DIR=/usr/local/include/sbgCom/ LIBRARY=/usr/local/lib/ TARGET=gm-ub endif CC=$(PREFIX)gcc STRIP=$(PREFIX)strip CFLAGS=-Wall CXXFLAGS= OBJS=gm.o all: $(TARGET) $(TARGET): $(OBJS) $(CC) $(CFLAGS) $(OBJS) -L$(LIBRARY) -lpthread -lrt -lSbgComSerial -o $@ mv gm-mx gmsm-mx