From 9b4249431637f70b12128c0d2b7ce6fb82c882f4 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Fri, 1 Aug 2014 13:30:05 +0100 Subject: [PATCH] Added general example makefile settings --- examples/make_settings.mak | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 examples/make_settings.mak diff --git a/examples/make_settings.mak b/examples/make_settings.mak new file mode 100644 index 000000000..4ae04ef00 --- /dev/null +++ b/examples/make_settings.mak @@ -0,0 +1,30 @@ +# Copyright (c) 2014 Cesanta Software +# All rights reserved + +CFLAGS = -W -Wall -I.. -pthread -g -pipe $(CFLAGS_EXTRA) +RM = rm -rf +OUT = -o $@ +ALL_PROGS = hello websocket server post multi_threaded upload auth pubsub ws_ssl +NS = ../../../net_skeleton +SW = ../../../ssl_wrapper + +ifeq ($(OS),Windows_NT) + MSVC = ../../vc6 + RM = del /q /f + OUT = + CC = $(MSVC)/bin/cl + CFLAGS = /MD /TC /nologo /W3 /I$(MSVC)/include /I.. + CFLAGS += /link /incremental:no /libpath:$(MSVC)/lib /machine:IX86 + CFLAGS += $(CFLAGS_EXTRA) +else + UNAME_S := $(shell uname -s) + CC = g++ + CFLAGS += -g -O0 + + ifeq ($(UNAME_S),Linux) + CFLAGS += -ldl + endif + + ifeq ($(UNAME_S),Darwin) + endif +endif -- GitLab