mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Merge pull request #496 from amirouche/makefile-consider-git-libraries-first
Makefile: consider git libraries first
This commit is contained in:
commit
7796d99a79
1 changed files with 7 additions and 7 deletions
14
Makefile
14
Makefile
|
@ -9,8 +9,8 @@ include Makefile.config
|
|||
# Set up Cyclone here to build the compiler itself using a system-installed
|
||||
# compiler (EG: from bootstrap or an earlier cyclone version). Everything
|
||||
# else can then be built using our local binary.
|
||||
CYCLONE_SYSTEM = cyclone -A . -CLNK '-L.'
|
||||
CYCLONE_LOCAL = ./cyclone -A . -A libs -COPT '-Iinclude' -CLNK '-L.'
|
||||
CYCLONE_SYSTEM = cyclone -I . -CLNK '-L.'
|
||||
CYCLONE_LOCAL = ./cyclone -I . -I libs -COPT '-Iinclude' -CLNK '-L.'
|
||||
CCOMP = $(CC) $(CFLAGS)
|
||||
INDENT_CMD = indent -linux -l80 -i2 -nut
|
||||
|
||||
|
@ -46,7 +46,7 @@ TEST_SRC = $(TEST_DIR)/unit-tests.scm \
|
|||
$(TEST_DIR)/srfi-60-tests.scm \
|
||||
$(TEST_DIR)/srfi-121-tests.scm \
|
||||
$(TEST_DIR)/srfi-128-162-tests.scm \
|
||||
$(TEST_DIR)/srfi-143-tests.scm
|
||||
$(TEST_DIR)/srfi-143-tests.scm
|
||||
TESTS = $(basename $(TEST_SRC))
|
||||
|
||||
# Primary rules (of interest to an end user)
|
||||
|
@ -166,7 +166,7 @@ $(EXAMPLES) : %: %.scm cyclone libs
|
|||
game-of-life :
|
||||
cd $(EXAMPLE_DIR)/game-of-life ; $(MAKE)
|
||||
|
||||
hello-library/hello :
|
||||
hello-library/hello :
|
||||
cd $(EXAMPLE_DIR)/hello-library ; $(MAKE)
|
||||
|
||||
libs : $(COBJECTS)
|
||||
|
@ -201,7 +201,7 @@ mstreams.o : mstreams.c $(HEADERS)
|
|||
$< -o $@
|
||||
|
||||
ifdef CYC_PTHREAD_SET_STACK_SIZE
|
||||
DEF_PTHREAD_SET_STACK_SIZE=-DCYC_PTHREAD_SET_STACK_SIZE=$(CYC_PTHREAD_SET_STACK_SIZE)
|
||||
DEF_PTHREAD_SET_STACK_SIZE=-DCYC_PTHREAD_SET_STACK_SIZE=$(CYC_PTHREAD_SET_STACK_SIZE)
|
||||
else
|
||||
DEF_PTHREAD_SET_STACK_SIZE=
|
||||
endif
|
||||
|
@ -230,7 +230,7 @@ libcyclone.a : runtime.o gc.o ffi.o mstreams.o hashset.o
|
|||
#gcc -static main.c -L. -lmean -o statically_linked
|
||||
#Note: the first three letters (the lib) must not be specified, as well as the suffix (.a)
|
||||
|
||||
full :
|
||||
full :
|
||||
$(MAKE) clean ; $(MAKE) && $(MAKE) test && $(MAKE) bootstrap && cd ../cyclone-bootstrap && $(MAKE) clean && ./install.sh
|
||||
|
||||
bench :
|
||||
|
@ -323,7 +323,7 @@ bootstrap : icyc libs
|
|||
cp cyclone.c $(BOOTSTRAP_DIR)/cyclone.c
|
||||
cp Makefile.config $(BOOTSTRAP_DIR)/Makefile.config
|
||||
|
||||
install-includes : $(HEADER_DIR)/*.h
|
||||
install-includes : $(HEADER_DIR)/*.h
|
||||
$(MKDIR) $(DESTDIR)$(INCDIR)
|
||||
$(INSTALL) -m0644 $(HEADER_DIR)/*.h $(DESTDIR)$(INCDIR)/
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue