mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-08 06:41:58 +00:00
28 lines
770 B
Makefile
28 lines
770 B
Makefile
c_executables = $(patsubst %.c,%,$(wildcard *.c))
|
|
cxx_executables = $(patsubst %.cpp,%,$(wildcard *.cpp))
|
|
|
|
target = $(c_executables) $(cxx_executables) manifest
|
|
|
|
level = ../
|
|
include ../Makefile
|
|
|
|
CFLAGS-debug += -fno-builtin -nostdlib
|
|
|
|
ifeq ($(SYS),x86_64-linux-gnu)
|
|
$(c_executables): %: %.c $(libs) $(level)../../../Pal/src/user_start.o
|
|
@echo [ $@ ]
|
|
$(CC) $(CFLAGS-debug) $(LDFLAGS-debug) -o $@ $^ -lpal -lsysdb_debug
|
|
|
|
|
|
$(cxx_executables): %: %.cpp $(libs) $(level)../../../Pal/src/user_start.o
|
|
@echo [ $@ ]
|
|
$(CXX) $(CFLAGS-debug) $(LDFLAGS-debug) -o $@ $^ -lpal -lsysdb_debug
|
|
|
|
.PHONY: pack
|
|
pack: $(c_executables) $(cxx_executables)
|
|
@../../../../Scripts/pack_binaries.sh test $^
|
|
else
|
|
$(c_executables) $(cxx_executables): .packed/test.tar.gz
|
|
tar -xmozf $< $@
|
|
endif
|