mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-21 06:39:16 +02:00
Added cflags for building on raspberry pi
This commit is contained in:
parent
71af17d7e7
commit
1aa04f75b6
2 changed files with 5 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -43,13 +43,13 @@ dispatch.c: generate-c.scm
|
||||||
./generate-c
|
./generate-c
|
||||||
|
|
||||||
libcyclone.so.1: runtime.c include/cyclone/runtime.h
|
libcyclone.so.1: runtime.c include/cyclone/runtime.h
|
||||||
gcc -g -c -fPIC runtime.c -o runtime.o
|
gcc $(CFLAGS) -c -fPIC runtime.c -o runtime.o
|
||||||
gcc -shared -Wl,-soname,libcyclone.so.1 -o libcyclone.so.1.0.1 runtime.o
|
gcc -shared -Wl,-soname,libcyclone.so.1 -o libcyclone.so.1.0.1 runtime.o
|
||||||
|
|
||||||
libcyclone.a: runtime.c include/cyclone/runtime.h include/cyclone/types.h gc.c dispatch.c
|
libcyclone.a: runtime.c include/cyclone/runtime.h include/cyclone/types.h gc.c dispatch.c
|
||||||
$(CC) -g -c -Iinclude dispatch.c -o dispatch.o
|
$(CC) $(CFLAGS) -c -Iinclude dispatch.c -o dispatch.o
|
||||||
$(CC) -g -std=gnu99 -c -Iinclude gc.c -o gc.o
|
$(CC) $(CFLAGS) -std=gnu99 -c -Iinclude gc.c -o gc.o
|
||||||
$(CC) -g -c -Iinclude -DCYC_INSTALL_DIR=\"$(PREFIX)\" -DCYC_INSTALL_LIB=\"$(LIBDIR)\" -DCYC_INSTALL_INC=\"$(INCDIR)\" -DCYC_INSTALL_SLD=\"$(DATADIR)\" runtime.c -o runtime.o
|
$(CC) $(CFLAGS) -c -Iinclude -DCYC_INSTALL_DIR=\"$(PREFIX)\" -DCYC_INSTALL_LIB=\"$(LIBDIR)\" -DCYC_INSTALL_INC=\"$(INCDIR)\" -DCYC_INSTALL_SLD=\"$(DATADIR)\" runtime.c -o runtime.o
|
||||||
$(AR) rcs libcyclone.a runtime.o gc.o dispatch.o
|
$(AR) rcs libcyclone.a runtime.o gc.o dispatch.o
|
||||||
# Instructions from: http://www.adp-gmbh.ch/cpp/gcc/create_lib.html
|
# Instructions from: http://www.adp-gmbh.ch/cpp/gcc/create_lib.html
|
||||||
# Note compiler will have to link to this, eg:
|
# Note compiler will have to link to this, eg:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
# install configuration
|
# install configuration
|
||||||
|
|
||||||
|
CFLAGS ?= -g -march=armv6k
|
||||||
CC ?= cc
|
CC ?= cc
|
||||||
AR ?= ar
|
AR ?= ar
|
||||||
#CD ?= cd
|
#CD ?= cd
|
||||||
|
|
Loading…
Add table
Reference in a new issue