Skip to content

Commit

Permalink
server-side functionality for the web repl
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Boyer committed Jul 4, 2011
1 parent 655f34e commit bc82927
Show file tree
Hide file tree
Showing 8 changed files with 2,307 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ui/webserver/Makefile
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
Loading

0 comments on commit bc82927

Please sign in to comment.