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