You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

594 B

common.mk

A useful Makefile library.

Usage

Fill in some values, then include the common.mk file at the bottom of your Makefile.

Example

The following example will build foo from foo.cpp, bar from bar.c, and baz from main.c and second.cpp.

DEBUG=true # Set this to false for more silent output
programs=foo bar baz
baz_SRCS=main.c second.cpp
CXXFLAGS=-g $(shell pkg-config --cflags sdl)
CFLAGS=-g
foo_CXXFLAGS=-Wall
bar_CFLAGS=-O3
bar_LDFLAGS=$(shell pkg-config --libs sdl)
LIBS=GL

include common.mk