From ff7b895c889f4ee6e2b89cf61692d044b6f84b68 Mon Sep 17 00:00:00 2001 From: Fabio Araujo Date: Wed, 3 Aug 2022 15:55:18 -0300 Subject: [PATCH 1/2] Create config to load from environment --- config.env | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config.env diff --git a/config.env b/config.env new file mode 100644 index 00000000..592a53ad --- /dev/null +++ b/config.env @@ -0,0 +1,17 @@ +COMPILE_OPTS = $(INCLUDES) -I. -DBSD=1 -O -DTIME_BASE=int -DSOCKLEN_T=socklen_t +C = c +C_COMPILER = ${CC} +C_FLAGS = $(COMPILE_OPTS) +CPP = ${CPP} +CPLUSPLUS_COMPILER = ${CXX} +CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DAIX=1 +OBJ = o +LINK = ${CXX} -o +LINK_OPTS = -L. +CONSOLE_LINK_OPTS = $(LINK_OPTS) +LIBRARY_LINK = ${LD} -o +LIBRARY_LINK_OPTS = $(LINK_OPTS) -r +LIB_SUFFIX = a +LIBS_FOR_CONSOLE_APPLICATION = +LIBS_FOR_GUI_APPLICATION = +EXE = From 4355d755248895bbf3a5740e32805469b85856b2 Mon Sep 17 00:00:00 2001 From: Fabio Araujo Date: Wed, 3 Aug 2022 15:57:13 -0300 Subject: [PATCH 2/2] Fix env file. --- config.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.env b/config.env index 592a53ad..f42e913f 100644 --- a/config.env +++ b/config.env @@ -2,7 +2,7 @@ COMPILE_OPTS = $(INCLUDES) -I. -DBSD=1 -O -DTIME_BASE=int -DSOCKLEN_T=socklen_t C = c C_COMPILER = ${CC} C_FLAGS = $(COMPILE_OPTS) -CPP = ${CPP} +CPP = cpp CPLUSPLUS_COMPILER = ${CXX} CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DAIX=1 OBJ = o