mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
9702e7c044
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2796 fc73d0e0-1445-4013-8a0c-d673dee63da5
25 lines
555 B
Makefile
25 lines
555 B
Makefile
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) *.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)
|
|
|
|
plugin.o: ../plugin.c $(HEADERS)
|
|
$(DO_CC)
|
|
|
|
qvm_api.o: ../qvm_api.c $(HEADERS)
|
|
$(DO_CC)
|
|
|
|
|