|
|
objs: $(OBJECTS) | objs: $(OBJECTS) |
| |
$(LIBNAME): $(OBJECTS) | $(LIBNAME): $(OBJECTS) |
libtool --mode=link gcc *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) |
libtool --mode=link gcc $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) |
| |
install: $(LIBNAME) | install: $(LIBNAME) |
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) | install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) |
|
|
| |
test: $(LIBNAME) demo/demo.o | test: $(LIBNAME) demo/demo.o |
gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o | gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o |
libtool --mode=link gcc -o test demo/demo.o $(LIBNAME_S) |
libtool --mode=link gcc $(LDFLAGS) -o test demo/demo.o $(LIBNAME_S) |
| |
mtest: test | mtest: test |
cd mtest ; gcc $(CFLAGS) mtest.c -o mtest |
cd mtest ; gcc $(CFLAGS) $(LDFLAGS) mtest.c -o mtest |
| |
timing: $(LIBNAME) | timing: $(LIBNAME) |
gcc $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest |
libtool --mode=link gcc $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest |