OSDN Git Service

libraries:
[handbrake-jp/handbrake-jp-git.git] / contrib / pthreadw32 / module.defs
1 $(eval $(call import.MODULE.defs,PTHREADW32,pthreadw32))
2 $(eval $(call import.CONTRIB.defs,PTHREADW32))
3
4 PTHREADW32.FETCH.url = http://download.handbrake.fr/handbrake/contrib/pthreads-w32-cvs20100909.tar.bz2
5
6 PTHREADW32.CONFIGURE = $(TOUCH.exe) $@
7
8 PTHREADW32.BUILD.extra = target=$(BUILD.cross.prefix) clean GC-static
9 PTHREADW32.BUILD.ntargets = clean GC-static
10
11 define PTHREADW32.INSTALL
12     $(CP.exe) $(PTHREADW32.EXTRACT.dir/)libpthreadGC2.a $(CONTRIB.build/)lib/
13     $(CP.exe) $(PTHREADW32.EXTRACT.dir/)pthread.h $(CONTRIB.build/)include/
14     $(CP.exe) $(PTHREADW32.EXTRACT.dir/)pthreads_win32_config.h $(CONTRIB.build/)include/
15     $(CP.exe) $(PTHREADW32.EXTRACT.dir/)sched.h $(CONTRIB.build/)include/
16     $(CP.exe) $(PTHREADW32.EXTRACT.dir/)semaphore.h $(CONTRIB.build/)include/
17     $(LN.exe) -sf ./libpthreadGC2.a $(CONTRIB.build/)lib/libpthread.a
18     $(TOUCH.exe) $@
19 endef
20
21 define PTHREADW32.UNINSTALL
22     $(RM.exe) -f $(CONTRIB.build/)lib/libpthreadGC2.a
23     $(RM.exe) -f $(CONTRIB.build/)include/pthread.h
24     $(RM.exe) -f $(CONTRIB.build/)include/sched.h
25     $(RM.exe) -f $(CONTRIB.build/)include/semaphore.h
26     $(RM.exe) -f $(PTHREADW32.INSTALL.target)
27 endef