The R Project SVN R

Rev

Rev 78886 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 78886 Rev 78896
Line 3... Line 3...
3
 
3
 
4
# triop.h says this does not work, but useful to debug wchar conversions.
4
# triop.h says this does not work, but useful to debug wchar conversions.
5
trio-CPPFLAGS=-DTRIO_FEATURE_WIDECHAR=1
5
trio-CPPFLAGS=-DTRIO_FEATURE_WIDECHAR=1
6
 
6
 
7
CPPFLAGS = -I../../include -I../../main
7
CPPFLAGS = -I../../include -I../../main
8
LTO =
-
 
9
 
8
 
10
# trionan.c and triostr.c are included by trio.o
9
# trionan.c and triostr.c are included by trio.o
11
OBJS = compat.o trio.o
10
OBJS = compat.o trio.o
12
TARGETLIB = libtrio.a
11
TARGETLIB = libtrio.a
13
 
12
 
14
all: $(TARGETLIB)
13
all: $(TARGETLIB)
15
 
14
 
16
$(TARGETLIB): $(OBJS)
15
$(TARGETLIB): $(OBJS)
17
 
16
 
-
 
17
ifneq "$(LTO)" ""
-
 
18
## Apparently with gcc 8.3 we need to avoid LTO: works with 9.2.
-
 
19
compat.o: compat.c
-
 
20
	$(CC) $(CPPFLAGS) -O3 -Wall -pedantic $(DEFINES) -c $< -o $@
-
 
21
endif
-
 
22
 
-
 
23
 
18
clean:
24
clean:
19
	@$(RM) *~ $(OBJS)
25
	@$(RM) *~ $(OBJS)
20
distclean: clean
26
distclean: clean
21
	@$(RM) $(TARGETLIB)
27
	@$(RM) $(TARGETLIB)