mirror of
https://github.com/eddyem/BTA_utils.git
synced 2025-12-06 10:45:14 +03:00
15 lines
430 B
Makefile
15 lines
430 B
Makefile
# run `make DEF=...` to add extra defines
|
|
PROGRAM := bta_control_net
|
|
LDFLAGS := -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,--discard-all
|
|
SRCS := bta_control_net.c bta_shdata.c
|
|
DEFINES := $(DEF) -D_GNU_SOURCE -D_XOPEN_SOURCE=1111
|
|
CFLAGS += -O2 -Wall -Werror -Wextra -Wno-trampolines -std=gnu99
|
|
CC = gcc
|
|
#CXX = g++
|
|
|
|
all : $(PROGRAM)
|
|
|
|
$(PROGRAM) : $(SRCS)
|
|
$(CC) $(DEFINES) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROGRAM)
|
|
|