If you are compiling code in unix based operating system, then you cannot escape the omnipresent Makefile. Well, writing a Makefile requires some knowledge of the basics. Here are some tips to get by.
> make -p
Displays all the macros available in make.
One particular macro that floats around a lot is the @ macro. This is a macro that make defines for each dependency line. In a code such as:
prog : file1.o
${CXX} -o $@ file1.o
"$@" interprets as "prog"
Tuesday, May 19, 2009
Sunday, May 17, 2009
Showing hidden files on Finder
How do you view hidden files on a finder? Try the following on a command terminal.
To show all hidden files:
> defaults write com.apple.finder AppleShowAllFiles YES
> killall Finder
To undo and hide hidden files on finder:
> defaults write com.apple.finder AppleShowAllFiles NO
> killall Finder
To show all hidden files:
> defaults write com.apple.finder AppleShowAllFiles YES
> killall Finder
To undo and hide hidden files on finder:
> defaults write com.apple.finder AppleShowAllFiles NO
> killall Finder
Saturday, May 16, 2009
Configuring X11 and Terminal
Here is a blog to note down some of my discoveries on how to work with UNIX/Mac OS X. Some tid bits for survival.
In Mac OS X 10.5, if you want to set alias and stuff, then you can do the following:
Edit .profile file in the home directory to configure the Terminal
Edit .bashrc if you want to configure X11
Some nice options to set as aliases:
alias ls='ls -G' : Color option for listing
In Mac OS X 10.5, if you want to set alias and stuff, then you can do the following:
Edit .profile file in the home directory to configure the Terminal
Edit .bashrc if you want to configure X11
Some nice options to set as aliases:
alias ls='ls -G' : Color option for listing
Subscribe to:
Posts (Atom)
