Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile')
-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