mkdir -m 2775 -p ../binlocal ../liblocal ../include
install -m 775 $(TARGETS) ../binlocal/
install -m 775 $(LIB_TARGETS) ../liblocal/
-ifndef AXIS_TOP_DIR
+
+ifdef PEXOR
install -m 664 trbnet.h trberror.h pexor_user.h ../include/
else
install -m 664 trbnet.h trberror.h ../include/
# ------------ Dependencies --------------------------------------------
-ifndef AXIS_TOP_DIR
+ifdef PEXOR
pexor_user.h:
ln -s ../pexor/kernel-module/pexor_user.h
# ------------ Compiler / Linker Options -------------------------------
-ifdef AXIS_TOP_DIR
+ifdef ETRAX
AXIS_USABLE_LIBS = UCLIBC GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis
-else
+ CPPFLAGS = -DETRAX
+else
CC = gcc
ifeq ($(shell uname -m), x86_64)
- CPPFLAGS = -DPEXOR -DX86_64
- else
- CPPFLAGS = -DPEXOR
+ ARCH = -DX86_64
+ endif
+
+ ifdef TRB3
+ CPPFLAGS = $(ARCH) -DTRB3
+ else
+ CPPFLAGS = $(ARCH) -DPEXOR
endif
endif