@ -0,0 +1,56 @@ |
|||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
# |
|||
# Filename: package/.../protothread/makefile.patch |
|||
# Copyright (C) 2009 The OpenSDE Project |
|||
# |
|||
# More information can be found in the files COPYING and README. |
|||
# |
|||
# This patch file is dual-licensed. It is available under the license the |
|||
# patched project is licensed under, as long as it is an OpenSource license |
|||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|||
# of the GNU General Public License as published by the Free Software |
|||
# Foundation; either version 2 of the License, or (at your option) any later |
|||
# version. |
|||
# --- SDE-COPYRIGHT-NOTE-END --- |
|||
|
|||
--- ./Makefile.orig 2009-01-18 19:12:34.000000000 +0000
|
|||
+++ ./Makefile 2009-01-18 19:40:18.000000000 +0000
|
|||
@@ -1,15 +1,36 @@
|
|||
+CC = gcc
|
|||
+AR = ar
|
|||
CFLAGS = -g -Wall |
|||
|
|||
+prefix = /usr/local
|
|||
+bindir = $(prefix)/bin
|
|||
+libdir = $(prefix)/lib
|
|||
+DESTDIR=
|
|||
+
|
|||
+TARGETS = pttest protothread.a
|
|||
+
|
|||
OBJS = \ |
|||
protothread_test.o \ |
|||
protothread_lock.o \ |
|||
protothread_sem.o \ |
|||
protothread.o \ |
|||
|
|||
+
|
|||
+.PHONY: all clean install
|
|||
+
|
|||
+all: $(TARGETS)
|
|||
+
|
|||
pttest: $(OBJS) protothread.h |
|||
$(CC) $(CFLAGS) -o $@ $(OBJS) |
|||
|
|||
+protothread.a: $(OBJS)
|
|||
+ $(AR) rcs $@ $(OBJS)
|
|||
+
|
|||
$(OBJS): protothread.h |
|||
|
|||
clean: |
|||
- rm -f *.o
|
|||
+ rm -f $(OBJS) $(TARGETS)
|
|||
+
|
|||
+install:
|
|||
+ cp -vf pttest $(DESTDIR)$(bindir)/
|
|||
+ cp -vf protothread.a $(DESTDIR)$(libdir)/
|
@ -0,0 +1,20 @@ |
|||
|
|||
[TIMESTAMP] 1232308325 Sun Jan 18 19:52:05 2009 |
|||
[BUILDTIME] 100 (9) |
|||
[SIZE] 0.05 MB, 10 files |
|||
|
|||
[DEP] 00-dirtree |
|||
[DEP] bash |
|||
[DEP] binutils |
|||
[DEP] bzip2 |
|||
[DEP] coreutils |
|||
[DEP] diffutils |
|||
[DEP] findutils |
|||
[DEP] gcc |
|||
[DEP] glibc |
|||
[DEP] grep |
|||
[DEP] make |
|||
[DEP] patch |
|||
[DEP] sed |
|||
[DEP] sysfiles |
|||
[DEP] tar |
@ -0,0 +1,17 @@ |
|||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
# |
|||
# Filename: package/.../protothread/protothread.conf |
|||
# Copyright (C) 2009 The OpenSDE Project |
|||
# |
|||
# More information can be found in the files COPYING and README. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; version 2 of the License. A copy of the |
|||
# GNU General Public License can be found in the file COPYING. |
|||
# --- SDE-COPYRIGHT-NOTE-END --- |
|||
|
|||
custextract=autoextract_subdir_tar_bz2 |
|||
|
|||
hook_add postmake 5 'cp -vf license.txt gdbinit $DESTDIR$docdir/' |
@ -0,0 +1,38 @@ |
|||
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|||
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
[COPY] |
|||
[COPY] Filename: package/.../protothread/protothread.desc |
|||
[COPY] Copyright (C) 2009 The OpenSDE Project |
|||
[COPY] |
|||
[COPY] More information can be found in the files COPYING and README. |
|||
[COPY] |
|||
[COPY] This program is free software; you can redistribute it and/or modify |
|||
[COPY] it under the terms of the GNU General Public License as published by |
|||
[COPY] the Free Software Foundation; version 2 of the License. A copy of the |
|||
[COPY] GNU General Public License can be found in the file COPYING. |
|||
[COPY] --- SDE-COPYRIGHT-NOTE-END --- |
|||
|
|||
[I] A Simple Protothreads library using gcc extensions |
|||
|
|||
[T] Protothreads is a programming model invented by Adam Dunkels that |
|||
[T] combines the advantages of event-driven (sometimes also called state |
|||
[T] machine) programming and threaded programming. The main advantage of |
|||
[T] the event-driven model is efficiency, both speed and memory usage. |
|||
[T] The main advantage of the threaded model is algorithm clarity. |
|||
[T] Protothreads gives you both. A protothread is an extremely lightweight |
|||
[T] thread. As with event-driven programming, there is a single stack; but |
|||
[T] like threaded programming, a function can (at least conceptually) block. |
|||
|
|||
[U] http://protothread.wiki.sf.net |
|||
|
|||
[A] Larry Ruane <LarryRuane@gmail.com> |
|||
[M] Alejandro Mery <amery@opensde.org> |
|||
|
|||
[C] extra/development |
|||
|
|||
[L] MIT |
|||
[S] Stable |
|||
[V] v01 |
|||
[P] X -----5---9 800.000 |
|||
|
|||
[D] 2906824009 protothread-v01.tar !http://dl.sourceforge.net/sourceforge/protothread/protothread.tar |