diff --git a/plugins/emailnot/Makefile b/plugins/emailnot/Makefile new file mode 100755 index 000000000..fe05e16db --- /dev/null +++ b/plugins/emailnot/Makefile @@ -0,0 +1,6 @@ +LCC_FLAGS=-DQ3_VM -S -Wf-target=bytecode -Wf-g + +qvm: + lcc $(LCC_FLAGS) imapnoti.c; lcc $(LCC_FLAGS) md5.c; lcc $(LCC_FLAGS) pop3noti.c; lcc $(LCC_FLAGS) ../memory.c; lcc $(LCC_FLAGS) ../plugin.c; lcc $(LCC_FLAGS) ../qvm_api.c; q3asm -f emailnot +clean: + rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm \ No newline at end of file diff --git a/plugins/ezscript/Makefile b/plugins/ezscript/Makefile index 6f99df7bb..466024118 100644 --- a/plugins/ezscript/Makefile +++ b/plugins/ezscript/Makefile @@ -2,11 +2,16 @@ DO_CC=$(CC) -ggdb -fPIC -Wall $(CFLAGS) -o $@ -c $< OBJECTS=ezscript.o plugin.o qvm_api.o HEADERS=../plugin.h OUTFILE=../ezscriptx86.so +LCC_FLAGS=-DQ3_VM -S -Wf-target=bytecode -Wf-g all: $(OBJECTS) $(CC) -ggdb -fPIC -shared $(OBJECTS) -o $(OUTFILE) clean: - rm -rf $(OBJECTS) $(OUTFILE) + rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm + +qvm: + lcc $(LCC_FLAGS) ezscript.c; lcc $(LCC_FLAGS) ../plugin.c; lcc $(LCC_FLAGS) ../qvm_api.c; q3asm -f ezscript + ezscript.o: ezscript.c $(HEADERS) $(DO_CC) diff --git a/plugins/hud/Makefile b/plugins/hud/Makefile index b017b9950..f7d31e63e 100644 --- a/plugins/hud/Makefile +++ b/plugins/hud/Makefile @@ -2,11 +2,14 @@ DO_CC=$(CC) -ggdb -fPIC -Wall $(CFLAGS) -o $@ -c $< OBJECTS=ui_sbar.o plugin.o qvm_api.o HEADERS=../plugin.h OUTFILE=../hudx86.so +LCC_FLAGS=-DQ3_VM -S -Wf-target=bytecode -Wf-g all: $(OBJECTS) $(CC) -ggdb -fPIC -shared $(OBJECTS) -o $(OUTFILE) +qvm: + lcc $(LCC_FLAGS) ui_sbar.c; lcc $(LCC_FLAGS) ../plugin.c; lcc $(LCC_FLAGS) ../qvm_api.c; q3asm -f qwui clean: - rm -rf $(OBJECTS) $(OUTFILE) + rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm ui_sbar.o: ui_sbar.c $(HEADERS) $(DO_CC) diff --git a/plugins/jabber/Makefile b/plugins/jabber/Makefile index d1a07f4c6..d8399f699 100644 --- a/plugins/jabber/Makefile +++ b/plugins/jabber/Makefile @@ -1,3 +1,10 @@ +LCC_FLAGS=-DQ3_VM -S -Wf-target=bytecode -Wf-g + +qvm: + lcc $(LCC_FLAGS) jabberclient.c; lcc $(LCC_FLAGS) ../memory.c; lcc $(LCC_FLAGS) ../plugin.c; lcc $(LCC_FLAGS) ../qvm_api.c; q3asm -f jabbercl +clean: + rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm + all: native native: diff --git a/plugins/namemaker/Makefile b/plugins/namemaker/Makefile new file mode 100644 index 000000000..308cc8656 --- /dev/null +++ b/plugins/namemaker/Makefile @@ -0,0 +1,6 @@ +LCC_FLAGS=-DQ3_VM -S -Wf-target=bytecode -Wf-g + +qvm: + lcc $(LCC_FLAGS) namemaker.c; lcc $(LCC_FLAGS) ../plugin.c; lcc $(LCC_FLAGS) ../qvm_api.c; q3asm -f namemaker +clean: + rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm diff --git a/plugins/spaceinv/Makefile b/plugins/spaceinv/Makefile new file mode 100644 index 000000000..caced6142 --- /dev/null +++ b/plugins/spaceinv/Makefile @@ -0,0 +1,6 @@ +LCC_FLAGS=-DQ3_VM -S -Wf-target=bytecode -Wf-g + +qvm: + lcc $(LCC_FLAGS) spaceinv.c; lcc $(LCC_FLAGS) ../memory.c -DMEMSIZE=1048576; lcc $(LCC_FLAGS) ../plugin.c; lcc $(LCC_FLAGS) ../qvm_api.c; q3asm -f spaceinv +clean: + rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm