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
18 $(CC
) $(CFLAGS
) $< -o
$@
25 mkdir
-p
/usr
/include/silver
/
26 cp
-rv
$(HEADERS
) /usr
/include/silver
27 cp
-rv
$(EXECUTABLE
) /usr
/lib
/
31 rm /usr
/include/silver
/libsilverconf.h