Skip to content

Commit

Permalink
issue #22: updated for Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Nov 7, 2019
1 parent e2ea6e1 commit 3f7acc9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ EXTSRC = \
src/_extdll/lib/sqlite3/sqlite3.c \
src/_extdll/lib/zip/miniz.c

all: $(TARGET)
all: ext_json.c $(TARGET)

$(TARGET): bin/bootstrap/kcc bin/bootstrap/kccbltin.so bin/bootstrap/kccjit.so bin/bootstrap/kccext.so
mkdir -p $(TARGETDIR)
Expand All @@ -93,6 +93,13 @@ $(TARGET): bin/bootstrap/kcc bin/bootstrap/kccbltin.so bin/bootstrap/kccjit.so b
cp -f bin/bootstrap/kccjit.so .
cp -f bin/bootstrap/kccext.so .

ext_json.c: myacc kccrt/libsrc/kcc/json.y
./myacc -y __json_yy -Y JSON_YY kccrt/libsrc/kcc/json.y
mv -f y.tab.c kccrt/libsrc/kcc/ext_json.c

myacc:
$(CC) $(CFLAGS) -o myacc utility/myacc.c

bin/bootstrap/kcc: bin/bootstrap/libkcc.so
@mkdir -p $(@D)
$(CC) $(MAINSRC) -o $@ -Wl,-rpath,'$$ORIGIN' -L$(@D) -lkcc
Expand Down

0 comments on commit 3f7acc9

Please sign in to comment.