deadpixi / mtm

Perhaps the smallest useful terminal multiplexer in the world.
1.12k stars 53 forks source link

Use makefile variables in a more standard manner #35

Open 0mp opened 5 years ago

0mp commented 5 years ago

In order to make mtm easier to compile on a variety of operating systems, let's use more standard makefile flags:

This way, for example, mtm can be compiled on FreeBSD with the following command:

env CFLAGS="-I/usr/local/include -I/usr/local/include/ncurses" \
        LDFLAGS=-L/usr/local/lib \
        make clean all

Also, I did not touch the HEADERS variable as I do not understand its purpose.

JohnAZoidberg commented 5 years ago

Using pkg-config would make it even easier.