2005-05-17 22:05:45 +00:00
|
|
|
DO_CC=$(CC) -ggdb -fPIC -Wall $(CFLAGS) -o $@ -c $<
|
|
|
|
OBJECTS=ui_sbar.o plugin.o qvm_api.o
|
|
|
|
HEADERS=../plugin.h
|
2007-10-05 09:59:27 +00:00
|
|
|
OUTFILE=../hudx86.so
|
2007-11-27 16:03:33 +00:00
|
|
|
LCC_FLAGS=-DQ3_VM -S -Wf-target=bytecode -Wf-g
|
2005-05-17 22:05:45 +00:00
|
|
|
all: $(OBJECTS)
|
2007-10-05 09:59:27 +00:00
|
|
|
$(CC) -ggdb -fPIC -shared $(OBJECTS) -o $(OUTFILE)
|
|
|
|
|
2007-11-27 16:03:33 +00:00
|
|
|
qvm:
|
|
|
|
lcc $(LCC_FLAGS) ui_sbar.c; lcc $(LCC_FLAGS) ../plugin.c; lcc $(LCC_FLAGS) ../qvm_api.c; q3asm -f qwui
|
2007-10-05 09:59:27 +00:00
|
|
|
clean:
|
2007-11-27 16:03:33 +00:00
|
|
|
rm -rf $(OBJECTS) $(OUTFILE) *.qvm *.asm
|
2005-05-17 22:05:45 +00:00
|
|
|
|
|
|
|
ui_sbar.o: ui_sbar.c $(HEADERS)
|
|
|
|
$(DO_CC)
|
|
|
|
|
|
|
|
plugin.o: ../plugin.c $(HEADERS)
|
|
|
|
$(DO_CC)
|
|
|
|
|
|
|
|
qvm_api.o: ../qvm_api.c $(HEADERS)
|
|
|
|
$(DO_CC)
|
|
|
|
|