mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-08 06:41:58 +00:00
- 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
39 lines
876 B
Makefile
39 lines
876 B
Makefile
include ../src/Makefile.Host
|
|
|
|
CC = gcc
|
|
AR = ar rcs
|
|
|
|
CFLAGS = -Wall -fPIC -O2 -std=gnu99 -fgnu89-inline -U_FORTIFY_SOURCE \
|
|
-fno-omit-frame-pointer \
|
|
-fno-stack-protector -fno-builtin
|
|
ARFLAGS =
|
|
|
|
include ../src/host/$(OS)/Makefile.am
|
|
|
|
CFLAGS += -I. -I../include -I../src
|
|
subdirs = string stdlib network graphene
|
|
objs = $(foreach dir,$(subdirs),$(patsubst %.c,%.o,$(wildcard $(dir)/*.c)))
|
|
headers = asm-errlist.h api.h
|
|
|
|
all: $(target)graphene-lib.a
|
|
|
|
debug: CC = gcc -g
|
|
debug: CFLAGS += -DDEBUG
|
|
debug: $(target)graphene-lib.a
|
|
|
|
$(target)graphene-lib.a: $(addprefix $(target),$(objs))
|
|
@echo [ $(notdir $@) ]
|
|
@mkdir -p $(dir $@)
|
|
@$(AR) $(ARFLAGS) $@ $^
|
|
|
|
../src/host_endian.h:
|
|
@$(MAKE) -C ../src host_endian.h
|
|
|
|
$(target)%.o: %.c $(headers) ../src/host_endian.h
|
|
@echo [ $(notdir $@) ]
|
|
@mkdir -p $(dir $@)
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f $(objs) graphene-lib.a
|