On 2019-03-12 12:08+0100 Valerio Messina via Msys2-users wrote:
hi,
I want to use a single Makefile for three platforms (Linux64, MinGw64,
MinGw32) to generate a simple binary (using SDL2).
The source is a single .c file, so use Automake, Autoconf is too heavy.
Hi Valerio:
I am sure you cou
On 03/12/19 16:26, David Grayson wrote:
The INCPATH and LIBPATH variables you have defined are probably
redundant: gcc should automatically be searching those directories for
header files and libraries already. (You can run `gcc
-print-search-dirs | grep libraries` to see which directories are
On 2019-03-12 12:08+0100 Valerio Messina via Msys2-users wrote:
hi,
I want to use a single Makefile for three platforms (Linux64, MinGw64,
MinGw32) to generate a simple binary (using SDL2).
The source is a single .c file, so use Automake, Autoconf is too heavy.
Hi Valerio:
This is my second
The INCPATH and LIBPATH variables you have defined are probably redundant:
gcc should automatically be searching those directories for header files
and libraries already. (You can run `gcc -print-search-dirs | grep
libraries` to see which directories are searched for libraries. You can
run `gcc -
hello
with GNU make, maybe this can help you (detection of OS + exemple) :
osname := $(shell uname)
OS :=$(osname)
OS := $(OS:Linux=Unix)
# FreeBSD, OpenBSD, NetBSD, MidnightBSD
OS := $(OS:%BSD=Unix)
OS := $(OS:DragonFlyD=Unix)
OS := $(OS:SunOS=Unix)
OS := $(OS:MINGW%=Windows)
OS := $(OS:MSYS%=Wi
hi,
I want to use a single Makefile for three platforms (Linux64, MinGw64,
MinGw32) to generate a simple binary (using SDL2).
The source is a single .c file, so use Automake, Autoconf is too heavy.
As now I concentrated the differences only in three variables:
INCPATH
LIBPATH
LDFLAGS
that have