-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server-side functionality for the web repl
- Loading branch information
Stephan Boyer
committed
Jul 4, 2011
1 parent
655f34e
commit bc82927
Showing
8 changed files
with
2,307 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
JULIAHOME = $(shell pwd)/../.. | ||
include $(JULIAHOME)/Make.inc | ||
|
||
CPP = g++ | ||
LIBS = -lpthread | ||
|
||
LIBJULIA_RELEASE = $(JULIAHOME)/libjulia-release.$(SHLIB_EXT) | ||
LIBJULIA_DEBUG = $(JULIAHOME)/libjulia-debug.$(SHLIB_EXT) | ||
|
||
WEBSERVER_SRCS = webserver.cpp server.cpp network.cpp tinythread.cpp | ||
WEBSERVER_OBJS = webserver.o server.o network.o tinythread.o | ||
|
||
%.o: %.c | ||
$(CC) $(CFLAGS) $(SHIPFLAGS) -c $< -o $@ | ||
%.do: %.c | ||
$(CC) $(CFLAGS) $(DEBUGFLAGS) -c $< -o $@ | ||
|
||
julia-debug julia-release: webserver | ||
|
||
webserver: $(WEBSERVER_SRCS) | ||
$(CPP) $(CXXFLAGS) $(SHIPFLAGS) -I$(JULIAHOME)/src -I$(JULIAHOME)/src/support -c $(WEBSERVER_SRCS) | ||
$(CPP) -o $@ $(SHIPFLAGS) $(WEBSERVER_OBJS) $(LIBJULIA_RELEASE) $(LIBS) | ||
cp webserver $(JULIAHOME)/webserver | ||
|
||
clean: | ||
rm -f *.o *.do | ||
rm -f webserver | ||
rm -f $(JULIAHOME)/webserver |
Oops, something went wrong.