aboutsummaryrefslogtreecommitdiff
path: root/dxtn/Makefile
blob: 975063f8b45681e41c7f5c1a04490eedab25c97a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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