mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
Those tests are duplicates of regression/bootstrap_static.c and regression/bootstrap_pie.c.
27 lines
879 B
Makefile
27 lines
879 B
Makefile
c_executables = $(patsubst %.c,%,$(wildcard *.c))
|
|
cxx_executables = $(patsubst %.cpp,%,$(wildcard *.cpp))
|
|
manifests = $(patsubst %.template,%,$(wildcard *.manifest.template)) manifest
|
|
|
|
exec_target = $(c_executables) $(cxx_executables) ls.manifest
|
|
target = $(exec_target) $(manifests)
|
|
|
|
level = ../
|
|
include ../Makefile
|
|
|
|
ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
|
|
$(c_executables): %: %.c
|
|
@echo [ $@ ]
|
|
@$(CC) -MD -MP $(CFLAGS) $(if $(findstring .libos,$@),$(CFLAGS-libos),) -o $@ $< \
|
|
$(shell echo $@ | sed 's/^[^\.]*//g' | sed 's/\./ -l/g')
|
|
|
|
$(cxx_executables): %: %.cpp
|
|
@echo [ $@ ]
|
|
@$(CXX) -MD -MP $(CXXFLAGS) $(if $(findstring .libos,$@),$(CFLAGS-libos),) -o $@ $< \
|
|
$(shell echo $@ | sed 's/^[^\.]*//g' | sed 's/\./ -l/g')
|
|
|
|
include $(wildcard *.d)
|
|
else
|
|
.IGNORE: $(c_executables) $(cxx_executables)
|
|
$(c_executables) $(cxx_executables):
|
|
endif
|