Skip to content

Commit b1cc1bf

Browse files
committed
Allow user to customise build environment
1 parent 4e1a024 commit b1cc1bf

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Makefile for atg, a tiny gui for SDL
2-
PREFIX := /usr/local
3-
MONOFONTPATH := $$(find /usr/share/fonts -name LiberationMono-Regular.ttf -print -quit)
4-
CC := gcc
5-
CFLAGS := -Wall -Wextra -Werror -pedantic --std=gnu99 -g -DMONOFONTPATH=\"$(MONOFONTPATH)\"
2+
PREFIX ?= /usr/local
3+
FONTSPATH ?= /usr/share/fonts
4+
MONOFONTPATH != find ${FONTSPATH} -name LiberationMono-Regular.ttf -print -quit
5+
CC ?= gcc
6+
CFLAGS += -Wall -Wextra -Werror -pedantic --std=gnu99 -g -DMONOFONTPATH=\"$(MONOFONTPATH)\"
67
SDL := `sdl-config --libs` -lSDL_ttf
78
SDLFLAGS := `sdl-config --cflags`
89
OBJS := atg.o plumbing.o w_box.o w_label.o w_image.o w_button.o w_spinner.o w_toggle.o w_filepicker.o

0 commit comments

Comments
 (0)