forked from sunaku/libixp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.mk
46 lines (36 loc) · 858 Bytes
/
config.mk
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
39
40
41
42
43
44
45
# Customize below to fit your system
COMPONENTS = \
libixp \
libixp_pthread
# Paths
PREFIX = /usr/local
BIN = $(PREFIX)/bin
MAN = $(PREFIX)/share/man
ETC = $(PREFIX)/etc
LIBDIR = $(PREFIX)/lib
INCLUDE = $(PREFIX)/include
# Includes and libs
INCLUDES = -I. -I$(ROOT)/include -I$(INCLUDE) -I/usr/include
LIBS = -L/usr/lib -lc
# Flags
include $(ROOT)/mk/gcc.mk
CFLAGS += $(DEBUGCFLAGS) -O0 $(INCS)
LDFLAGS = -g $(LDLIBS) $(LIBS)
# Compiler, Linker. Linker should usually *not* be ld.
CC = cc -c
LD = cc
# Archiver
AR = ar crs
#AR = sh -c 'ar cr "$$@" && ranlib "$$@"'
# Solaris
#CFLAGS = -fast $(INCS)
#LDFLAGS = $(LIBS) -R$(PREFIX)/lib -lsocket -lnsl
#CFLAGS += -xtarget=ultra
# Misc
#MAKESO = 1
# Extra Components
IGNORE = \
libixp_task \
libixp_rubythread
RUBYINC = -I/usr/local/lib/ruby/1.8/i386-freebsd6
TASKINC = -I$(HOME)/libtask