29e CFLAGS = -Wall -O -pipe -fomit-frame-pointer -I/usr/X11R6/include LIBS = -L/usr/X11R6/lib -lX11 INSTALL = install MAJOR = 1 LIB = libxsimple.so OBJS = xsimple.o pixmap.o image.o draw.o font.o color.o misc.o INCLUDES = xsimple.h LIBDIR = /home/mats/lib INCDIR = /home/mats/include $(LIB).$(MAJOR): $(OBJS) gcc -shared -Wl,-soname,$(LIB).$(MAJOR) -o $(LIB).$(MAJOR) \ $(OBJS) $(LIBS) install: $(LIB).$(MAJOR) $(INSTALL) -d $(LIBDIR) $(INSTALL) -m 644 $(LIB).$(MAJOR) $(LIBDIR) ln -sf $(LIBDIR)/$(LIB).$(MAJOR) $(LIBDIR)/$(LIB) $(INSTALL) -d $(INCDIR) $(INSTALL) -m 644 $(INCLUDES) $(INCDIR) clean: rm -f $(LIB).$(MAJOR) $(OBJS) . 0