diff options
Diffstat (limited to 'dxtn/Makefile')
-rw-r--r-- | dxtn/Makefile | 18 |
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 |