Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormoberhuber2008-07-28 11:24:52 -0400
committermoberhuber2008-07-28 11:24:52 -0400
commit025dbba289e8a8a681c9739bc72e11be37904ce4 (patch)
tree41907d14e2e4de2192d653838cbf185361b1e085 /examples
parente379cbbce1c7d278be7c479b23f6d1b69873c7e3 (diff)
downloadorg.eclipse.tcf-025dbba289e8a8a681c9739bc72e11be37904ce4.tar.gz
org.eclipse.tcf-025dbba289e8a8a681c9739bc72e11be37904ce4.tar.xz
org.eclipse.tcf-025dbba289e8a8a681c9739bc72e11be37904ce4.zip
Msys support for agent to Makefile
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile b/examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile
index 1ead543d4..6e4e99dd7 100644
--- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile
+++ b/examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile
@@ -1,5 +1,5 @@
CC=gcc
-CFLAGS=-O -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -Wmissing-prototypes -I. -I../../agent -I-
+CFLAGS=-g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -Wmissing-prototypes -I. -I../../agent -I-
CFILES=$(basename $(wildcard *.c)) $(basename $(notdir $(wildcard ../../agent/*.c)))
OFILES=$(filter-out main%.o, $(addsuffix .o, $(CFILES)))
@@ -12,8 +12,13 @@ UNAME=$(shell uname -o)
ifeq ($(UNAME),Cygwin)
LIBS=-lws2_32 -liphlpapi
else
+ifeq ($(UNAME),Msys)
+CFLAGS:=-mwin32 $(CFLAGS)
+LIBS=-lws2_32 -liphlpapi
+else
LIBS=-lpthread -lrt -lelf
endif
+endif
all: $(EXES)

Back to the top