better texture binding
[voxelands-alt.git] / Makefile.base
blobb89ae051fb27441843c71d1330daaf6cd6fea24a
1 CD ?= cd
2 RM ?= rm
3 LD ?= ld
5 TARGET=voxelands
6 PACKAGE=voxelands
7 VERSION=1602.00-alt
9 include Makefile.sources
11 CFLAG_DEFS=-DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\" -DGAMEDATA=\"$(DATADIR)\"
13 DISTFILES=inc data README CHANGELOG LICENSE $(SRCDIR) Makefile.*
15 .SUFFIXES:
16 .SUFFIXES: .c .o .h
18 all: default
20 default: client server
22 client: $(TARGET)
24 server: $(TARGET)-server
26 dist-base:
27         mkdir -p $(PACKAGE)-$(VERSION)
28         cp -Rt $(PACKAGE)-$(VERSION) $(DISTFILES)
30 dist-gz: dist-base
31         tar czf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
32         $(RM) -r $(PACKAGE)-$(VERSION)
34 dist-bz2: dist-base
35         tar cjf $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION)
36         $(RM) -r $(PACKAGE)-$(VERSION)
38 dist: distclean dist-bz2
40 distclean:
41         $(RM) $(OBJS)
43 clean: distclean
44         $(RM) $(PACKAGE)*
46 fresh: clean all
48 .c.o: inc/common.h
49         $(CC) $(TARGET_CFLAGS) $(CFLAG_DEFS) -o $@ -c $<
51 .PHONY: all default client server dist-base dist-gz dist-bz2 dist distclean clean fresh