diff src/pthreads.mk @ 982:4d2e6c7c2cc2

test program for package pthreads (by Martin Lambers)
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 16 May 2010 18:06:17 +0200
parents 795dbc19e055
children 7fae546007a1
line wrap: on
line diff
--- a/src/pthreads.mk	Sat May 15 20:45:27 2010 +0200
+++ b/src/pthreads.mk	Sun May 16 18:06:17 2010 +0200
@@ -31,4 +31,9 @@
     $(INSTALL) -m664 '$(1)/pthread.h'   '$(PREFIX)/$(TARGET)/include/'
     $(INSTALL) -m664 '$(1)/sched.h'     '$(PREFIX)/$(TARGET)/include/'
     $(INSTALL) -m664 '$(1)/semaphore.h' '$(PREFIX)/$(TARGET)/include/'
+
+    '$(TARGET)-gcc' \
+        -W -Wall -Werror -ansi -pedantic \
+        '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-pthreads.exe' \
+        -lpthread -lws2_32
 endef