1
2include config
3
4SRC = alpha.cpp clusterfit.cpp colourblock.cpp colourfit.cpp colourset.cpp maths.cpp rangefit.cpp singlecolourfit.cpp squish.cpp
5
6OBJ = $(SRC:%.cpp=%.o)
7
8LIB = libsquish.a
9
10all : $(LIB)
11
12install : $(LIB)
13	install squish.h $(INSTALL_DIR)/include
14	install libsquish.a $(INSTALL_DIR)/lib
15
16uninstall:
17	$(RM) $(INSTALL_DIR)/include/squish.h
18	$(RM) $(INSTALL_DIR)/lib/libsquish.a
19
20$(LIB) : $(OBJ)
21	$(AR) cr $@ $?
22	ranlib $@
23
24%.o : %.cpp
25	$(CXX) $(CPPFLAGS) -I. $(CXXFLAGS) -o$@ -c $<
26
27clean :
28	$(RM) $(OBJ) $(LIB)
29
30
31
32