1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2024-07-22 01:58:46 -03:00

48 lines
1.1 KiB
Makefile
Executable File

# -*-Makefile-*-
# This is the version of the make utility you wish to use.
# On some systems (BSD?) you might want this to be gmake.
#MAKE=gmake
MAKE=make
VERSION=1.0.2
CUR_DATE=`date '+%y.%m.%d'`
ifeq "${PLATFORM}" ""
PLATFORM=x86
endif
## You may need to change this linux/include part.
CCFLAGS = -g -D_GNU_SOURCE -Wall -I../../linux/include
ifneq ($(strip $(TCSUPPORT_CODE_SHRINK)),)
CCFLAGS += -Os
endif
LDLIBS = # -lm #-lnsl # -lsocket
ARM_TC_BIN = ${HOME}/Intrinsyc/bin
ARM_TC_LIB = ${HOME}/Intrinsyc/lib
ifeq "${PLATFORM}" "ARM"
#echo "Building for ARM platform."
STRIP=${ARM_TC_BIN}/arm-linux-strip
CC = ${ARM_TC_BIN}/arm-linux-gcc # this is generally the c compiler, unused AFAIK
CCC = ${ARM_TC_BIN}/arm-linux-g++ # this is generally the c++ compiler
else
# CROSS=mips-linux-
# CC=$(CROSS)gcc
# AR=$(CROSS)ar
# LD=$(CROSS)ld
# STRIP=$(CROSS)strip
# RANLIB=$(CROSS)ranlib
# SIZE=$(CROSS)size
# LIBDIR=$(CROSS_PATH)/lib
# KERNEL_DIR=../../linux
# INCLUDE = -I$(KERNEL_DIR)/include
# CFLAGS= -mips1 -msoft-float -DTRENDCHIP
endif