You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
# --- 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 |
|
|
|
buildloops=2 |
|
|
|
makeopt_orig="-f ../Makefile SRCDIR=.. $makeopt" |
|
|
|
hook_add preconf 5 'buildloop_control' |
|
buildloop_control() { |
|
[ "$buildloop" = 1 ] || cd .. |
|
mkdir "objdir$buildloop" |
|
cd "objdir$buildloop" |
|
|
|
case "$buildloop" in |
|
1) makeopt="$makeopt_orig DEBUG=yes" |
|
makeinstopt="$makeopt_orig SUFFIX=_debug install" |
|
;; |
|
2) makeopt="$makeopt_orig DEBUG=no" |
|
makeinstopt="$makeopt_orig install" |
|
;; |
|
esac |
|
} |
|
|
|
hook_add postdoc 5 'cp -vf ../license.txt ../gdbinit $DESTDIR$docdir/'
|
|
|