• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/support/kconfig/Makefile.br
Yann E. MORINYann E. MORIN committed b58bf60b51914 Apr 2013
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
src := .
2
top_srcdir=../../
3
top_builddir=../../
4
srctree := .
5
obj ?= .
6
​
7
include Makefile
8
#HOSTCFLAGS+=-Dinline="" -include foo.h
9
-include $(obj)/.depend
10
$(obj)/.depend: $(wildcard *.h *.c)
11
    $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || :
12
​
13
__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
14
host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
15
host-cmulti := $(foreach m,$(__hostprogs),\
16
           $(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
17
host-cxxmulti := $(foreach m,$(__hostprogs),\
18
           $(if $($(m)-cxxobjs),$(m),$(if $($(m)-objs),)))
19
host-cobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-objs))))
20
host-cxxobjs := $(addprefix $(obj)/,$(sort $(foreach m,$(__hostprogs),$($(m)-cxxobjs))))
21
​
22
HOST_EXTRACFLAGS += -I$(obj) -DCONFIG_=\"\"
23
​
24
$(host-csingle): %: %.c
25
    $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< -o $(obj)/$@
26
​
27
$(host-cmulti): %: $(host-cobjs) $(host-cshlib)
28
    $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
29
​
30
$(host-cxxmulti): %: $(host-cxxobjs) $(host-cobjs) $(host-cshlib)
31
    $(HOSTCXX) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs) $($(@F)-cxxobjs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
32
​
33
$(obj)/%.o: %.c
34
    $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
35
​
36
$(obj)/%.o: $(obj)/%.c
37
    $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
38
​
39
$(obj)/%.o: %.cc
40
    $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$(@F)) -c $< -o $@
41
​
42
$(obj)/%:: $(src)/%_shipped
43
    $(Q)cat $< > $@
44
​
45
clean:
46
    $(Q)rm -f $(addprefix $(obj)/,$(clean-files))
47
distclean: clean
48
    $(Q)rm -f $(addprefix $(obj)/,$(lxdialog) $(conf-objs) $(mconf-objs) $(kxgettext-objs) \
49
        $(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
50
        mconf .depend)
51
​
52
FORCE:
53
.PHONY: FORCE clean distclean
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.