Skip to content

Commit

Permalink
Makefile: make CC, CFLAGS, and PREFIX configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Aug 29, 2024
1 parent 46a37e0 commit d7486a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions h3result/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
CC = gcc
CFLAGS = -std=c11 -Wall -Wextra -pedantic -O3 -MMD -MP
CC ?= gcc
CFLAGS ?= -std=c11 -Wall -Wextra -pedantic -O3 -MMD -MP
PREFIX ?= /usr/local
SRC = $(filter-out $(wildcard test_*.c),$(wildcard *.c))
OBJ = $(SRC:.c=.o)
HDR = $(wildcard *.h)
LIBHDR = $(wildcard h3r_*.h)
LIB = libh3result.a
PREFIX ?= /usr/local

all: $(LIB)

Expand Down

0 comments on commit d7486a7

Please sign in to comment.