diff options
author | John Levon <john.levon@joyent.com> | 2020-05-26 13:57:13 +0000 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2020-05-26 13:57:13 +0000 |
commit | 5b2acc0949194447bba6e45a0fa44d0b5f42f208 (patch) | |
tree | 7ea9eb87bc68fee386dd39035ce715e87a0e673c /usr/src/test/libc-tests/tests/stdio/Makefile | |
parent | 8ca018083101bf1cb175869679bc123187fb1bab (diff) | |
parent | 2a1277d3064386cd5c4e372301007aa330bf1d5e (diff) | |
download | illumos-joyent-gcc9.tar.gz |
mergegcc9
Diffstat (limited to 'usr/src/test/libc-tests/tests/stdio/Makefile')
-rw-r--r-- | usr/src/test/libc-tests/tests/stdio/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/usr/src/test/libc-tests/tests/stdio/Makefile b/usr/src/test/libc-tests/tests/stdio/Makefile index b94c42df30..092d62bc60 100644 --- a/usr/src/test/libc-tests/tests/stdio/Makefile +++ b/usr/src/test/libc-tests/tests/stdio/Makefile @@ -23,17 +23,23 @@ PROGS = \ orientation_test \ test_mbrtowc +LFSPROGS = \ + ftello_12768 + PROGS32 = $(PROGS:%=%.32) -PROGS64 = $(PROGS:%=%.64) +PROGSLFS = $(LFSPROGS:%=%.lfs) +PROGS64 = $(PROGS:%=%.64) $(LFSPROGS:%=%.64) ROOTOPTDIR = $(ROOT)/opt/libc-tests/tests ROOTOPTSTDIO = $(ROOTOPTDIR)/stdio ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTSTDIO)/%) \ - $(PROGS64:%=$(ROOTOPTSTDIO)/%) + $(PROGS64:%=$(ROOTOPTSTDIO)/%) \ + $(PROGSLFS:%=$(ROOTOPTSTDIO)/%) include $(SRC)/cmd/Makefile.cmd CPPFLAGS += -D_REENTRANT -D__EXTENSIONS__ +LFSCPPFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 # # libumem is used to interpose on all of these tests to modify the @@ -58,10 +64,10 @@ orientation_test.64 := SMOFF += all_func_returns .KEEP_STATE: -install: $(ROOTOPTPROGS) - all: $(PROGS32) $(PROGS64) +install: $(ROOTOPTPROGS) + clean: $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTSTDIO) @@ -79,6 +85,10 @@ $(ROOTOPTSTDIO)/%: % $(LINK64.c) -o $@ $< $(LDLIBS64) $(POST_PROCESS) +%.lfs: %.c + $(LINK.c) $(LFSCPPFLAGS) -o $@ $< $(LDLIBS) + $(POST_PROCESS) + %.32: %.c $(LINK.c) -o $@ $< $(LDLIBS) $(POST_PROCESS) |