Files
graphene/Pal/test/Makefile
T
Chia-Che Tsai b5586bbfc6 release v0.3
- Bugfixes in PAL and SHIM
- Improvement of migration scheme in SHIM, which largely speed up
  forking
- Upgrade glibc to 2.19
- FreeBSD port
- Support OpenJDK, python and R
2015-11-30 08:38:50 -05:00

44 lines
977 B
Makefile

SYS ?= $(shell gcc -dumpmachine)
CC = gcc
CFLAGS = -Wall -O2 -std=gnu99 -fgnu89-inline -fno-builtin -nostdlib \
-I../include/pal -I../lib
executables = HelloWorld File Failure Thread Fork Event Process Exception \
Memory Pipe Tcp Udp Yield Broadcast Ipc Server Wait HandleSend \
Select Segment
manifests = manifest
target = $(executables) $(manifests)
graphene_lib = .lib/graphene-lib.a
pal_lib = ../src/libpal.so
headers = $(wildcard ../include/pal/*.h)
all: $(target)
debug: CC=gcc -g
debug: $(target)
manifest: manifest.template
cp -f manifest.template manifest
ifeq ($(SYS),x86_64-linux-gnu)
$(executables): %: %.c $(graphene_lib) $(pal_lib) ../src/user_start.o
@echo [ $@ ]
@$(CC) $(CFLAGS) $^ -o $@
$(graphene_lib):
$(MAKE) -C ../lib target=$(shell pwd)/.lib/ $(debug)
.PHONY: pack
pack: $(executables)
@../../Scripts/pack_binaries.sh test $^
else
$(executables): .packed/test.tar.gz
tar -xmozf $< $@
endif
clean:
rm -rf $(target) .lib