* Added the first simple wallpaper.
[Silver.git] / libsilverconf / Makefile
bloba095cf45b4e9cd9ea0a7e1a72534480d119d2f05
1 CC=gcc
2 CFLAGS=-c -Wall
3 LDFLAGS=
4 SOURCES=libsilverconf.c
5 OBJECTS=$(SOURCES:.c=.o)
6 EXECUTABLE=libsilverconf.so
7 HEADERS=libsilverconf.h
9 all: $(SOURCES) $(EXECUTABLE)
11 $(EXECUTABLE): $(OBJECTS)
12 rm libsilverconf.so.1 libsilverconf.so.1.1
13 $(CC) $(LDFLAGS) -shared $(OBJECTS) -o $@
14 ln -s libsilverconf.so libsilverconf.so.1
15 ln -s libsilverconf.so libsilverconf.so.1.1
17 .cpp.o:
18 $(CC) $(CFLAGS) $< -o $@
20 clean:
21 rm -f *.o
22 rm -f *.so*
24 install:
25 mkdir -p /usr/include/silver/
26 cp -rv $(HEADERS) /usr/include/silver
27 cp -rv $(EXECUTABLE) /usr/lib/
28 ldconfig
30 uninstall:
31 rm /usr/include/silver/libsilverconf.h