aboutsummaryrefslogtreecommitdiff
path: root/dxtn/Makefile
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-12-25 19:10:23 +0000
committermarha <marha@users.sourceforge.net>2010-12-25 19:10:23 +0000
commitc2c3ce5abd338cb6345780cb86c30ca9f34a6562 (patch)
treee89335fcc835c7e567ce1018593733ffc1cf11f2 /dxtn/Makefile
parentc6539c9f45372fb6518bff17a781effd654bd3f0 (diff)
downloadvcxsrv-c2c3ce5abd338cb6345780cb86c30ca9f34a6562.tar.gz
vcxsrv-c2c3ce5abd338cb6345780cb86c30ca9f34a6562.tar.bz2
vcxsrv-c2c3ce5abd338cb6345780cb86c30ca9f34a6562.zip
Added sources of dxtn. See getsrc.btm used for getting the sources
Diffstat (limited to 'dxtn/Makefile')
-rw-r--r--dxtn/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/dxtn/Makefile b/dxtn/Makefile
new file mode 100644
index 000000000..975063f8b
--- /dev/null
+++ b/dxtn/Makefile
@@ -0,0 +1,18 @@
+CFLAGS += -Wall -pedantic -fPIC
+OPT_CFLAGS = -O3
+LDFLAGS += -shared -fPIC
+OBJS = txc_compress_dxtn.o txc_fetch_dxtn.o
+LIB = libtxc_dxtn.so
+
+$(LIB): $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS)
+
+%.o: %.c txc_dxtn.h
+ $(CC) $(CFLAGS) $(OPT_CFLAGS) -c -o $@ $<
+
+clean:
+ rm -f $(OBJS) $(LIB)
+
+install: $(LIB)
+ install -d $(DESTDIR)/usr/lib
+ install -m 755 $(LIB) $(DESTDIR)/usr/lib