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:
parent
925987dfbe
commit
9702e7c044
6 changed files with 35 additions and 2 deletions
6
plugins/emailnot/Makefile
Executable file
6
plugins/emailnot/Makefile
Executable 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
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
6
plugins/namemaker/Makefile
Normal file
6
plugins/namemaker/Makefile
Normal 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
|
6
plugins/spaceinv/Makefile
Normal file
6
plugins/spaceinv/Makefile
Normal 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
|
Loading…
Reference in a new issue