2020-11-25 16:19:00 +00:00
|
|
|
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
|
|
|
#───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘
|
|
|
|
|
|
|
|
o/$(MODE)/test/libc/release/cosmopolitan.zip: \
|
|
|
|
o/cosmopolitan.h \
|
|
|
|
o/$(MODE)/ape/ape.lds \
|
|
|
|
o/$(MODE)/libc/crt/crt.o \
|
|
|
|
o/$(MODE)/ape/ape.o \
|
|
|
|
o/$(MODE)/cosmopolitan.a
|
|
|
|
zip -j $@ $^
|
|
|
|
|
|
|
|
o/$(MODE)/test/libc/release/smoke.com: \
|
|
|
|
test/libc/release/smoke.c \
|
|
|
|
o/cosmopolitan.h \
|
|
|
|
o/$(MODE)/ape/ape.lds \
|
|
|
|
o/$(MODE)/libc/crt/crt.o \
|
|
|
|
o/$(MODE)/ape/ape.o \
|
|
|
|
o/$(MODE)/cosmopolitan.a
|
|
|
|
@ACTION=CC build/compile $(CC) \
|
|
|
|
-o $@ \
|
|
|
|
-Os \
|
|
|
|
-static \
|
|
|
|
-no-pie \
|
2020-12-05 20:20:41 +00:00
|
|
|
-fno-pie \
|
2020-11-25 16:19:00 +00:00
|
|
|
-nostdlib \
|
|
|
|
-nostdinc \
|
2020-12-05 20:20:41 +00:00
|
|
|
-Wl,--gc-sections \
|
2020-11-25 16:19:00 +00:00
|
|
|
-Wl,--oformat=binary \
|
2020-11-28 20:01:51 +00:00
|
|
|
-Wl,-z,max-page-size=0x1000 \
|
2020-11-25 16:19:00 +00:00
|
|
|
-Wl,-T,o/$(MODE)/ape/ape.lds \
|
|
|
|
-include o/cosmopolitan.h \
|
|
|
|
test/libc/release/smoke.c \
|
|
|
|
o/$(MODE)/libc/crt/crt.o \
|
|
|
|
o/$(MODE)/ape/ape.o \
|
|
|
|
o/$(MODE)/cosmopolitan.a
|
|
|
|
|
|
|
|
.PHONY: o/$(MODE)/test/libc/release
|
|
|
|
o/$(MODE)/test/libc/release: \
|
|
|
|
o/$(MODE)/test/libc/release/smoke.com \
|
|
|
|
o/$(MODE)/test/libc/release/smoke.com.runs
|