diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-03-22 17:56:34 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-03-22 17:56:34 +0100 |
commit | 6a777afc079c2a8d3af3ecd2145fe8dd50567a39 (patch) | |
tree | 520f4489cebf8564ef6cb27064ceea45cbc005b3 /src/tools/asm/Makefile |
Diffstat (limited to 'src/tools/asm/Makefile')
-rw-r--r-- | src/tools/asm/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/tools/asm/Makefile b/src/tools/asm/Makefile new file mode 100644 index 0000000..af1813a --- /dev/null +++ b/src/tools/asm/Makefile @@ -0,0 +1,43 @@ +# yeah, couldn't do more simple really
+
+ifeq ($(PLATFORM),mingw32)
+ BINEXT=.exe
+else
+ BINEXT=
+endif
+
+ifeq ($(PLATFORM),sunos)
+ INSTALL=ginstall
+else
+ INSTALL=install
+endif
+
+CC=gcc
+Q3ASM_CFLAGS=-O2 -Wall -fno-strict-aliasing
+
+ifeq ($(PLATFORM),darwin)
+ LCC_CFLAGS += -DMACOS_X=1
+endif
+
+ifndef USE_CCACHE
+ USE_CCACHE=0
+endif
+
+ifeq ($(USE_CCACHE),1)
+ CC := ccache $(CC)
+ CXX := ccache $(CXX)
+endif
+
+default: q3asm
+
+q3asm: q3asm.c cmdlib.c
+ $(CC) $(Q3ASM_CFLAGS) -o $@ $^
+
+clean:
+ rm -f q3asm *~ *.o
+
+install: default
+ $(INSTALL) -s -m 0755 q3asm$(BINEXT) ../
+
+uninstall:
+ rm -f ../q3asm$(BINEXT)
|