Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2011-11-14 16:50:54 -0500
committerEugene Tarassov2011-11-14 16:50:54 -0500
commitf8787883efb88ea0a955eedce357a893f3a58cc0 (patch)
tree5eb1c850960a2033beee8edceaba61b934c9cebe /tests/test-dwarf/Makefile
parent3e513d6057e50f027f97ab86f5a21e13b1569691 (diff)
downloadorg.eclipse.tcf.agent-f8787883efb88ea0a955eedce357a893f3a58cc0.tar.gz
org.eclipse.tcf.agent-f8787883efb88ea0a955eedce357a893f3a58cc0.tar.xz
org.eclipse.tcf.agent-f8787883efb88ea0a955eedce357a893f3a58cc0.zip
TCF Tests: agent tests "mem-leaks" and "test-dwarf" are moved into the agent repository.
Diffstat (limited to 'tests/test-dwarf/Makefile')
-rw-r--r--tests/test-dwarf/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/test-dwarf/Makefile b/tests/test-dwarf/Makefile
new file mode 100644
index 00000000..657b0729
--- /dev/null
+++ b/tests/test-dwarf/Makefile
@@ -0,0 +1,30 @@
+TCF_AGENT_DIR=../../agent
+
+include $(TCF_AGENT_DIR)/Makefile.inc
+
+override CFLAGS += $(foreach dir,$(INCDIRS),-I$(dir)) $(OPTS)
+
+HFILES := $(foreach dir,$(SRCDIRS) tcf/backend,$(wildcard $(dir)/*.h)) $(HFILES)
+CFILES := $(sort $(foreach dir,$(SRCDIRS) tcf/backend,$(wildcard $(dir)/*.c)) $(CFILES))
+
+EXECS = $(BINDIR)/dwarf-test$(EXTEXE)
+
+all: $(EXECS)
+
+$(BINDIR)/libtcf$(EXTLIB) : $(OFILES)
+ $(AR) -rc $@ $^
+ $(RANLIB)
+
+$(BINDIR)/dwarf-test$(EXTEXE): $(BINDIR)/tcf/main/main$(EXTOBJ) $(BINDIR)/libtcf$(EXTLIB)
+ $(CC) $(CFLAGS) -o $@ $(BINDIR)/tcf/main/main$(EXTOBJ) $(BINDIR)/libtcf$(EXTLIB) $(LIBS)
+
+$(BINDIR)/%$(EXTOBJ): %.c $(HFILES) Makefile
+ @$(call MKDIR,$(dir $@))
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+$(BINDIR)/%$(EXTOBJ): $(TCF_AGENT_DIR)/%.c $(HFILES) Makefile
+ @$(call MKDIR,$(dir $@))
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+ $(call RMDIR,$(BINDIR))

Back to the top