QVM targets for possible QVM compileable plugins

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2796 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Lance 2007-11-27 16:03:33 +00:00
parent 925987dfbe
commit 9702e7c044
6 changed files with 35 additions and 2 deletions

6
plugins/emailnot/Makefile Executable file
View file

@ -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

View file

@ -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)

View file

@ -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)

View file

@ -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:

View file

@ -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

View file

@ -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