mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-25 13:05:05 +02:00
Added stubs for dynamic linking
This commit is contained in:
parent
dd4e8ebc94
commit
366e813890
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -12,6 +12,9 @@ cgen.so: cgen.scm
|
||||||
parser.so: parser.scm
|
parser.so: parser.scm
|
||||||
csc -s parser.scm
|
csc -s parser.scm
|
||||||
|
|
||||||
|
libcyclone.so.1: runtime.c runtime.h
|
||||||
|
gcc -g -c -fPIC runtime.c -o runtime.o
|
||||||
|
gcc -shared -Wl,-soname,libcyclone.so.1 -o libcyclone.so.1.0.1 runtime.o
|
||||||
libcyclone.a: runtime.c runtime.h
|
libcyclone.a: runtime.c runtime.h
|
||||||
gcc -g -c runtime.c -o runtime.o
|
gcc -g -c runtime.c -o runtime.o
|
||||||
ar rcs libcyclone.a runtime.o
|
ar rcs libcyclone.a runtime.o
|
||||||
|
@ -25,6 +28,9 @@ libcyclone.a: runtime.c runtime.h
|
||||||
.PHONY: debug
|
.PHONY: debug
|
||||||
debug:
|
debug:
|
||||||
gcc -static test.c -L. -lcyclone -I. -g -o test
|
gcc -static test.c -L. -lcyclone -I. -g -o test
|
||||||
|
.PHONY: debug2
|
||||||
|
debug2: libcyclone.so.1
|
||||||
|
gcc test.c -L. -lcyclone -I. -g -o test
|
||||||
|
|
||||||
cyclone: cyclone.scm trans.so cgen.so parser.so libcyclone.a
|
cyclone: cyclone.scm trans.so cgen.so parser.so libcyclone.a
|
||||||
csc cyclone.scm
|
csc cyclone.scm
|
||||||
|
|
Loading…
Add table
Reference in a new issue