pipeline 다음 룰은 순서대로

이걸 이용하면 병렬처리 룰도 간단해질지도?



release:

    $(MAKE) clean

    $(MAKE) test1


release: | clean test1

[링크 : http://stackoverflow.com/questions/8496135/parallel-makefile-require-depency-ordering]


Occasionally, however, you have a situation where you want to impose a specific ordering on the rules to be invoked without forcing the target to be updated if one of those rules is executed. In that case, you want to define order-only prerequisites. Order-only prerequisites can be specified by placing a pipe symbol (|) in the prerequisites list: any prerequisites to the left of the pipe symbol are normal; any prerequisites to the right are order-only:


targets : normal-prerequisites | order-only-prerequisites

[링크 : https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html]


'프로그램 사용 > make, configure' 카테고리의 다른 글

cmake 옵션 확인  (0) 2021.01.20
cmake 빌드 에러시  (0) 2021.01.19
make /bin/sh: 1: pushd: not found 에러  (0) 2016.06.08
make 기본셸  (0) 2016.06.08
makefile := = 차이점  (0) 2016.06.04
Posted by 구차니
프로그램 사용/CUPS2016. 6. 16. 14:43

프린트 설치할때 경로 따로 잡고드라이버 설치하기 귀찮은데

그거 해결법...

근데 해결이 안되네 ㅠㅠ

시간 가지고 천천히 읽어 봐야지... 후...


아무튼..

cups로 해두고 print$ 에 W32X86 이나 W40에 넣으면 된다는데

영 안되네..


[링크 : https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html]

Posted by 구차니

가장 간편(?)한 건...

$ sudo ln -s /bin/bash /bin/sh 


그런데 이렇게 건드리는게 옳은건가...


[링크 : https://forums.xilinx.com/.../Trouble-configuring-petalinux-2013-10-bin-sh-1-pushd-not-found/td-p/399843]

'프로그램 사용 > make, configure' 카테고리의 다른 글

cmake 빌드 에러시  (0) 2021.01.19
make order  (0) 2016.06.16
make 기본셸  (0) 2016.06.08
makefile := = 차이점  (0) 2016.06.04
make 의존성 파일?  (0) 2015.12.18
Posted by 구차니

SHELL 변수로 설정되지 않으면 /bin/sh가 되므로

bash에서 지원하는 popd pushd 등이 봉인..

환경 변수 등을 끌어 가지 않으므로.. 결론은 Makefile 별로 설정을 해주어야 한다.



5.3.2 Choosing the Shell

The program used as the shell is taken from the variable SHELL. If this variable is not set in your makefile, the program /bin/sh is used as the shell. The argument(s) passed to the shell are taken from the variable .SHELLFLAGS. The default value of .SHELLFLAGS is -c normally, or -ec in POSIX-conforming mode.

Unlike most variables, the variable SHELL is never set from the environment. This is because the SHELL environment variable is used to specify your personal choice of shell program for interactive use. It would be very bad for personal choices like this to affect the functioning of makefiles. See Variables from the Environment.

Furthermore, when you do set SHELL in your makefile that value is not exported in the environment to recipe lines that make invokes. Instead, the value inherited from the user’s environment, if any, is exported. You can override this behavior by explicitly exporting SHELL (see Communicating Variables to a Sub-make), forcing it to be passed in the environment to recipe lines.

[링크 : https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html]

    [링크 : https://www.gnu.org/software/make/manual/html_node/Variables_002fRecursion.html]

'프로그램 사용 > make, configure' 카테고리의 다른 글

make order  (0) 2016.06.16
make /bin/sh: 1: pushd: not found 에러  (0) 2016.06.08
makefile := = 차이점  (0) 2016.06.04
make 의존성 파일?  (0) 2015.12.18
make 암시적 룰  (0) 2015.12.18
Posted by 구차니


 In short, variables defined with := are expanded once, but variables defined with = are expanded whenever they are used.

[링크 : http://stackoverflow.com/.../whats-the-difference-between-and-in-makefile]


Simply expanded variables are defined by lines using ‘:=’ or ‘::=’ (see Setting Variables). Both forms are equivalent in GNU make; however only the ‘::=’ form is described by the POSIX standard (support for ‘::=’ was added to the POSIX standard in 2012, so older versions of make won’t accept this form either).

[링크 : http://www.gnu.org/software/make/manual/html_node/Flavors.html#Flavors]


https://www.gnu.org/software/make/manual/html_node/Setting.html#Setting


'프로그램 사용 > make, configure' 카테고리의 다른 글

make /bin/sh: 1: pushd: not found 에러  (0) 2016.06.08
make 기본셸  (0) 2016.06.08
make 의존성 파일?  (0) 2015.12.18
make 암시적 룰  (0) 2015.12.18
make jobserver unavailable  (0) 2015.12.16
Posted by 구차니

80기가로 늘리기


C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyhd image.vdi --resize 81920


[링크 : http://www.howtogeek.com/.../how-to-enlarge-a-virtual-machines-disk-in-virtualbox-or-vmware/]


+ 2020.09.11

고정일경우 에러가 나서 되지 않으니

clonehd를 이용해서 동적으로 복사한후 늘리면 된다.


[링크 : https://m.blog.naver.com/r2adne/220239005520]

[링크 : https://stackoverflow.com/questions/50772789/]

Posted by 구차니

기분인진 모르겠으나, 게스트 확장 깔고 나서

ls 만 실행해도 상당히 느리게 반응하는 느낌이라.

그리고 창크기 변화하는게 그리 유용하진 않은지라 삭제!


/opt/VBoxGuestAdditions-5.0.20$ ll

합계 76

drwxr-xr-x 9 root root  4096  6월  2 17:26 ./

drwxr-xr-x 3 root root  4096  6월  2 17:26 ../

-rw-r--r-- 1 root root 20516  4월 28 22:22 LICENSE

drwxr-xr-x 2 root root  4096  4월 28 22:22 bin/

drwxr-xr-x 2 root root  4096  4월 28 22:22 init/

drwxr-xr-x 2 root root  4096  6월  2 17:26 installer/

drwxr-xr-x 3 root root  4096  4월 28 22:22 lib/

-rwxr-xr-x 1 root root 11319  6월  2 17:26 routines.sh*

drwxr-xr-x 2 root root  4096  4월 28 22:22 sbin/

drwxr-xr-x 3 root root  4096  4월 28 22:22 share/

drwxr-xr-x 3 root root  4096  4월 28 22:22 src/

-rwxr-xr-x 1 root root  2948  6월  2 17:26 uninstall.sh*


/opt/VBoxGuestAdditions-5.0.20$ sudo ./uninstall.sh
Removing installed version 5.0.20 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules ...done.


Besides the unistall

/opt/[VboxAddonsFolder]/uninstall.sh

I also had to remove /etc/X11/xorg.conf


[링크 : https://forums.virtualbox.org/viewtopic.php?t=7839


Posted by 구차니
프로그램 사용/gcc2016. 3. 28. 20:21

쓰는 법은 좀 나중에 읽어 봐야지...

make + gcc에서

컴파일시 의존성을 자동으로 끌어가기 위해

(make 쪽에서 파일 의존성 체크 하니까)

gcc를 이용하여 해당 소스에서 요구하는 헤더들의 목록을 .d 파일로 빼내는 기능


-MM 등의 옵션이 있나 보다..


[링크 : https://latedev.wordpress.com/2014/11/08/generic-makefiles-with-gcc-and-gnu-make/]

[링크 : http://scottmcpeak.com/autodepend/autodepend.html]

[링크 : https://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Preprocessor-Options.html]

'프로그램 사용 > gcc' 카테고리의 다른 글

gcc make CFLAGS=-D 관련  (0) 2016.11.17
gcc -fPIC  (0) 2016.06.22
gcc -M -MM  (0) 2015.12.17
gcc 초기화 관련  (0) 2015.10.21
precompiled header on GCC (라즈베리로 테스트)  (2) 2015.07.30
Posted by 구차니

-p는 prof용

-pggprof용


$ man gcc

       -p  Generate extra code to write profile information suitable for the analysis program prof.  You must

           use this option when compiling the source files you want data about, and you must also use it when

           linking.


       -pg Generate extra code to write profile information suitable for the analysis program gprof.  You

           must use this option when compiling the source files you want data about, and you must also use it

           when linking.



Unlike prof, gprof is capable of limited call graph collecting and printing.

[링크 : https://en.wikipedia.org/wiki/Gprof]


gprof was invented specifically because prof only gives you "self time"

[링크 : http://stackoverflow.com/questions/17612370/whats-the-difference-between-prof-and-gprof]


위키 내용은 prof가 나은거 같지만..

prof는 self time만 잴수 있다는 단점? 머.. 일장일단 정도일려나?


---


$ prof

The program 'prof' is currently not installed. You can install it by typing:

sudo apt-get install profphd


$ man prof
 prof - secondary structure and solvent accessibility predictor

얘는 다른앤가?


'프로그램 사용 > gcov, gprof' 카테고리의 다른 글

gcov와 gcovr  (0) 2023.07.20
gcovr - gocv 를 html로  (0) 2023.07.10
gprof gui  (0) 2023.07.10
gprof flat view 이해하기  (0) 2010.01.24
gcov, gprof  (0) 2010.01.23
Posted by 구차니
프로그램 사용/xrdp2016. 2. 24. 17:30

음.. 시도 해봐야 하나?


직접 빌드해서 올리는걸 봐서는.. 웬지 우분투 15.10에 있는 xrdp는

pulseaudio가 미진할때라 제외되지 않았을까 싶은데



[링크 : https://241931348f64b1d1.wordpress.com/.../how-to-compile-xrdpx11rdp-on-ubuntu/]


일주일 전 글이 검색되었는데 흐음...

막 개발중인건가? 해당 내용은?

[링크 : https://github.com/neutrinolabs/xrdp/issues/321]



동적 링크된 녀석중에 libpulse가 없는 걸 봐서는...

$ sudo find / -iname "libpulse*"

/usr/lib/libpulsecore-6.0.so

/usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0

/usr/lib/x86_64-linux-gnu/libpulse-simple.so.0

/usr/lib/x86_64-linux-gnu/libpulse-simple.so.0.1.0

/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so

/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-6.0.so

/usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0.0.5

/usr/lib/x86_64-linux-gnu/libpulse.so.0

/usr/lib/x86_64-linux-gnu/libpulse.so.0.18.0


/usr/sbin$ ldd xrdp

        linux-vdso.so.1 =>  (0x00007ffea089b000)

        libcommon.so.0 => /usr/lib/xrdp/libcommon.so.0 (0x00007f182f55a000)

        libxrdp.so.0 => /usr/lib/xrdp/libxrdp.so.0 (0x00007f182f343000)

        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f182ef5f000)

        libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f182eb1d000)

        libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f182e8b4000)

        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f182e695000)

        /lib64/ld-linux-x86-64.so.2 (0x00005631793e4000)

        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f182e491000)


/usr/sbin$ ldd xrdp-sesman

        linux-vdso.so.1 =>  (0x00007ffc3e926000)

        libcommon.so.0 => /usr/lib/xrdp/libcommon.so.0 (0x00007f143c16b000)

        libscp.so.0 => /usr/lib/xrdp/libscp.so.0 (0x00007f143bf60000)

        libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f143bd36000)

        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f143bb18000)

        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f143b74e000)

        libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f143b30b000)

        libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f143b0a2000)

        libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007f143ae7d000)

        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f143ac78000)

        /lib64/ld-linux-x86-64.so.2 (0x0000560a20b43000)



'프로그램 사용 > xrdp' 카테고리의 다른 글

xrdp의 장점 (vino/vnc 대비)  (0) 2016.02.23
xrdp.ini  (0) 2016.02.16
xrdp 구조?  (0) 2016.02.16
xrdp 3389 / lxde  (0) 2016.02.15
xrdp.. 사용가능한 세션 종류  (0) 2016.02.14
Posted by 구차니