From 8076167dfeb68366c26b559aac9b1185e119cea2 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Thu, 4 Jan 2007 23:04:57 +0000 Subject: Added Makefile for new javascript directory --- javascript/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 javascript/Makefile (limited to 'javascript') diff --git a/javascript/Makefile b/javascript/Makefile new file mode 100644 index 0000000..6dc97cd --- /dev/null +++ b/javascript/Makefile @@ -0,0 +1,40 @@ +CXX ?= g++ +AR ?= ar +ECPPC ?= ecppc + +CXXFLAGS ?= -O2 -Woverloaded-virtual -Wall -fPIC + +CXXFLAGS += `tntnet-config --cxxflags` +LDFLAGS += `tntnet-config --libs` + +INCLUDES += -I.. -I../pagelib -I$(VDRDIR)/include + +### The directory environment: + +VDRDIR ?= ../../../.. + +### The object files (add further files here): + +OBJS = alphaAPI.o domLib.o domTT_drag.o domTT.o fadomatic.o + +### Default rules: + +.PHONY: all clean + +all: libjavascript.a + +### Implicit rules: + +%.o: %.cpp + $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< + +%.cpp: %.js + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JS) -b -m "test/javascript" $< + +### Targets: + +libjavascript.a: $(OBJS) + $(AR) r $@ $^ + +clean: + @rm -f *~ *.o core* libjavascript.a $(OBJS:%.o=%.cpp) -- cgit v1.2.3