-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (28 loc) · 798 Bytes
/
Makefile
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
37
38
#***********************************************
#
# Simple Makefile for Makemask
#
#
#**********************************************
#Support for sgi systems
IRIX ?= 0
#Build the irix binary using qemu-irix with an "irix root"
CROSS ?= 1
#IRIX 6.5.30 root
ROOT = tools/irix
#maybe -KPIC should be necesary
SGI_CFLAGS := -I /usr/include/ -g0 -O1 -KPIC -mips1 -fullwarn -wlint,-fph -Wab,-r4300_mul -Xcpluscomm -nostdinc
ifeq ($(CROSS),1)
CFLAGS := -g0 -O1 -KPIC -mips1 -fullwarn -wlint,-fph -Wab, -Xcpluscomm -nostdinc -I $(ROOT)/usr/include
CC := /usr/bin/qemu-irix -silent -L $(ROOT) $(ROOT)/usr/bin/cc
else
CFLAGS := -Wall -O1 -g0 -fPIC
endif
all:
ifeq ($(IRIX),1)
$(CC) $(SGI_CFLAGS) makemask.c -o makemask
else
$(CC) $(CFLAGS) makemask.c -o makemask
endif
clean:
rm makemask