add 64-bit bta_control_net

This commit is contained in:
2020-12-17 17:46:55 +03:00
parent cfcea9b83d
commit f870b4d036
9 changed files with 3510 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# 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)