# $Id$
.PHONY: clean install
-./w3b: ./w3b.o $(RESFILE)
+./interactive: ./interactive.o $(RESFILE)
$(CC) -g -o $@ -L ../../Library $^ -lw3
./%.o: ./%.c
$(MAKE) -C .. ./libw3.res WINDRES=$(WINDRES)
clean:
- rm -f w3b *.o *.so *.core *~ *.exe *.res
+ rm -f interactive *.o *.so *.core *~ *.exe *.res
-install: ./w3b
+install: ./interactive
mkdir -p $(PREFIX)/bin
- cp ./w3b $(PREFIX)/bin/w3b
+ cp ./interactive $(PREFIX)/bin/interactive
./Example: ./Library/w3.dll
$(MAKE) -C ./Example/fetch CC=$(CC) RESFILE=../libw3.res WINDRES=$(WINDRES) WINDOWS=YES
- $(MAKE) -C ./Example/W3B CC=$(CC) RESFILE=../libw3.res WINDRES=$(WINDRES) WINDOWS=YES
+ $(MAKE) -C ./Example/interactive CC=$(CC) RESFILE=../libw3.res WINDRES=$(WINDRES) WINDOWS=YES
./Library/W3Version.h:
m4 -DSUFFIX=\"W\" ./W3Version.h.p > $@
./Example: ./Library/libw3.so
$(MAKE) -C ./Example/fetch CC=$(CC)
- $(MAKE) -C ./Example/W3B CC=$(CC)
+ $(MAKE) -C ./Example/interactive CC=$(CC)
./Library/W3Version.h:
m4 -DSUFFIX=\"\" ./W3Version.h.p > $@
$(MAKE) -C ./Library clean
$(MAKE) -C ./Example clean
$(MAKE) -C ./Example/fetch clean
- $(MAKE) -C ./Example/W3B clean
+ $(MAKE) -C ./Example/interactive clean
install: ./w3.pc
$(MAKE) -C ./Library install PREFIX=$(PREFIX)
archive: all
mkdir -p w3-$(VERSION)/Library
- mkdir -p w3-$(VERSION)/Example/W3B
+ mkdir -p w3-$(VERSION)/Example/interactive
mkdir -p w3-$(VERSION)/Example/fetch
cp -rf ./Library/*.h w3-$(VERSION)/Library/
ifdef WINDOWS
cp ./Library/*.lib w3-$(VERSION)/Library/
cp ./Library/*.dll w3-$(VERSION)/Library/
cp ./Example/fetch/fetch.exe w3-$(VERSION)/Example/fetch/
- cp ./Example/W3B/w3b.exe w3-$(VERSION)/Example/W3B/
+ cp ./Example/interactive/interactive.exe w3-$(VERSION)/Example/interactive/
else
cp ./Library/*.so w3-$(VERSION)/Library/
cp ./Example/fetch/fetch w3-$(VERSION)/Example/fetch/
- cp ./Example/W3B/w3b w3-$(VERSION)/Example/W3B/
+ cp ./Example/interactive/interactive w3-$(VERSION)/Example/interactive/
endif
-mv w3-$(VERSION)/*.h w3-$(VERSION)/Library/
-mv w3-$(VERSION)/*.so w3-$(VERSION)/Library/