Lines 28-34
Link Here
|
28 |
DISTDIR = clthreads-$(VERSION) |
28 |
DISTDIR = clthreads-$(VERSION) |
29 |
|
29 |
|
30 |
|
30 |
|
31 |
CPPFLAGS += -Wall -I. -fpic -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O2 |
31 |
CPPFLAGS += -Wall -I. -fpic -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS |
32 |
LDLFAGS += |
32 |
LDLFAGS += |
33 |
LDLIBS += |
33 |
LDLIBS += |
34 |
|
34 |
|
Lines 36-57
Link Here
|
36 |
CLTHREADS_SO = libclthreads.so |
36 |
CLTHREADS_SO = libclthreads.so |
37 |
CLTHREADS_MAJ = $(CLTHREADS_SO).$(MAJVERS) |
37 |
CLTHREADS_MAJ = $(CLTHREADS_SO).$(MAJVERS) |
38 |
CLTHREADS_MIN = $(CLTHREADS_MAJ).$(MINVERS) |
38 |
CLTHREADS_MIN = $(CLTHREADS_MAJ).$(MINVERS) |
39 |
CLTHREADS_DEP = -lpthread |
39 |
CLTHREADS_DEP = -lpthread -lrt |
40 |
CLTHREADS_O = p_thread.o a_thread.o itc_mesg.o itc_ip1q.o itc_ctrl.o textmsg.o |
40 |
CLTHREADS_O = p_thread.o a_thread.o itc_mesg.o itc_ip1q.o itc_ctrl.o textmsg.o |
41 |
CLTHREADS_H = clthreads.h |
41 |
CLTHREADS_H = clthreads.h |
42 |
|
42 |
|
43 |
|
43 |
|
44 |
$(CLTHREADS_MIN): $(CLTHREADS_O) |
44 |
$(CLTHREADS_MIN): $(CLTHREADS_O) |
45 |
g++ -shared $(LDFLAGS) -Wl,-soname,$(CLTHREADS_MAJ) -o $(CLTHREADS_MIN) $(CLTHREADS_O) $(CLTHREADS_DEP) |
45 |
$(CXX) -shared $(LDFLAGS) -Wl,-soname,$(CLTHREADS_MAJ) -o $(CLTHREADS_MIN) $(CLTHREADS_O) $(CLTHREADS_DEP) |
46 |
|
46 |
|
47 |
|
47 |
|
48 |
install: $(CLTHREADS_MIN) |
48 |
install: $(CLTHREADS_MIN) |
49 |
/usr/bin/install -d $(PREFIX)/$(LIBDIR) |
49 |
/usr/bin/install -D $(CLTHREADS_H) $(DESTDIR)usr/include/$(CLTHREADS_H) |
50 |
/usr/bin/install -m 644 $(CLTHREADS_H) $(PREFIX)/include |
50 |
/usr/bin/install -D $(CLTHREADS_MIN) $(DESTDIR)$(CLTHREADS_LIBDIR)/$(CLTHREADS_MIN) |
51 |
/usr/bin/install -m 755 $(CLTHREADS_MIN) $(PREFIX)/$(LIBDIR) |
51 |
ln -sf $(CLTHREADS_MIN) $(DESTDIR)$(CLTHREADS_LIBDIR)/$(CLTHREADS_MAJ) |
52 |
/sbin/ldconfig -n $(PREFIX)/$(LIBDIR) |
52 |
ln -sf $(CLTHREADS_MAJ) $(DESTDIR)$(CLTHREADS_LIBDIR)/$(CLTHREADS_SO) |
53 |
ln -sf $(CLTHREADS_MIN) $(PREFIX)/$(LIBDIR)/$(CLTHREADS_SO) |
|
|
54 |
|
55 |
|
53 |
|
56 |
clean: |
54 |
clean: |
57 |
/bin/rm -f *~ *.o *.a *.d *.so.* |
55 |
/bin/rm -f *~ *.o *.a *.d *.so.* |