| 1 |
include ff-flags |
| 2 |
PACKAGE=../pkg/libpthread-google.tar.gz |
| 3 |
SRCDIR= ./libpthread-google |
| 4 |
libpthread-google: WHERE |
| 5 |
|
| 6 |
ifeq ($(WIN32DLLTARGET),) |
| 7 |
libpthread-google WHERE tag-install tag-tar $(PACKAGE): |
| 8 |
@echo " Warning:not under windows do nothing, target: $@" |
| 9 |
else |
| 10 |
|
| 11 |
libpthread-google: WHERE |
| 12 |
|
| 13 |
WHERE:tag-install |
| 14 |
echo pthread-google LD -L@DIR@/lib -lpthread-google >../lib/WHERE.pthread-google |
| 15 |
echo pthread-google INCLUDE -I@DIR@/include/pthread-google >> ../lib/WHERE.pthread-google |
| 16 |
|
| 17 |
tag-install:tag-tar |
| 18 |
cd $(SRCDIR)/src; \ |
| 19 |
$(CC) -O -c *.c -I../include ;\ |
| 20 |
$(AR) rcs ../../../lib/libpthread-google.a *.o |
| 21 |
|
| 22 |
cp -r $(SRCDIR)/include/. ../include/pthread-google |
| 23 |
touch $@ |
| 24 |
|
| 25 |
tag-tar: $(PACKAGE) |
| 26 |
tar zxvf $(PACKAGE) |
| 27 |
touch $@ |
| 28 |
|
| 29 |
$(PACKAGE): |
| 30 |
../getall -o libpthread-google -a |
| 31 |
|
| 32 |
endif |
| 33 |
clean: |
| 34 |
-rm ff-flags tag-* |
| 35 |
-rm -rf libpthread-google* |
| 36 |
-rm FAIT $(FAIRE) |
| 37 |
-rm ../lib/*pthread-google* |
| 38 |
-rm -rf ../include/pthread-google* |
| 39 |
|
| 40 |
|
| 41 |
ff-flags: ../Makefile Makefile |
| 42 |
grep 'abs_top_builddir *=' ../Makefile > ff-flags |
| 43 |
grep 'CC *=' ../Makefile >> ff-flags |
| 44 |
grep 'CFLAGS *=' ../Makefile >> ff-flags |
| 45 |
grep 'LDFLAGS *=' ../Makefile >> ff-flags |
| 46 |
grep 'AR *=' ../Makefile >> ff-flags |
| 47 |
grep 'ARFLAGS *=' ../Makefile >> ff-flags |
| 48 |
grep 'RANLIB *=' ../Makefile >> ff-flags |
| 49 |
grep 'WIN32DLLTARGET *=' ../Makefile >> ff-flags |
| 50 |
grep 'WGET *=' ../Makefile >> ff-flags |
| 51 |
grep 'LIBS *=' ../Makefile >> ff-flags |
| 52 |
|