-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathcross.mk
More file actions
36 lines (32 loc) · 779 Bytes
/
cross.mk
File metadata and controls
36 lines (32 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DESTDIR = /usr/local/retrobsd
MACHINE = mips
CC = gcc -m32
AS = $(CC) -x assembler-with-cpp
LD = ld
AR = ar
RANLIB = ranlib
YACC = byacc
LEX = flex
SIZE = size
#OBJDUMP = objdump
OBJDUMP = sync --
INSTALL = install -m 644
INSTALLDIR = install -m 755 -d
TAGSFILE = tags
MANROFF = nroff -man -h
DOCROFF = nroff -mdoc -h
ELF2AOUT = cp
CFLAGS = -O -DCROSS
LDFLAGS =
LIBS =
# Add system include path
ifeq (/usr/include/x86_64-linux-gnu,$(wildcard /usr/include/x86_64-linux-gnu))
CFLAGS += -I/usr/include/x86_64-linux-gnu
else
ifeq (/usr/include/i386-linux-gnu,$(wildcard /usr/include/i386-linux-gnu))
CFLAGS += -I/usr/include/i386-linux-gnu
else
CFLAGS += -I/usr/include
endif
endif
CFLAGS += -I$(TOPSRC)/include