X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Frules.mk;h=16ebea65b22660307107188bfc07b07751d77eae;hp=f6bd89b6c47fb2a953c2ea07da09254b7f48b689;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/src/rules.mk b/src/rules.mk index f6bd89b..16ebea6 100644 --- a/src/rules.mk +++ b/src/rules.mk @@ -3,31 +3,30 @@ # Define rules and targets for Yoink. # -$(call include,moof stlplus) # Recurse into subdirectories. +$(call include,moof stlplus) # Recurse into subdirectories. -objects = $(patsubst %.c,$(builddir)/%.o,$(patsubst %.cc,$(builddir)/%.o,$(wildcard $d/*.c $d/*.cc))) +objects = $(patsubst %.c,$(builddir)/%.o,$(patsubst %.cc,$(builddir)/%.o,$(wildcard $d/*.c $d/*.cc))) ifeq (win32,$(platform)) -objects += $b/win32.o # Also compile win32 resource file. +objects += $b/win32.o # Also compile win32 resource file. endif ifeq (true,$(includeConfig)) -objects += $b/config.o # Also compile in the configuration. -exec += $b/config.c # Make config.c a build target. +objects += $b/config.o # Also compile in the configuration. +exec += $b/config.c # Make config.c a build target. $b/config.c: config.mk $(Q)$(xxd) endif $(objects): TGT_CFLAGS := -I$d $(objects): config.h $(this) | $b -# Make all objects depend on config.h; it's excessive, but config.h won't -# be remade otherwise if dependencies are not being generated. The -# alternative is to maintain an accurate list of objects with a dependency -# on config.h. +# Make all objects depend on config.h; it's excessive, but config.h won't be +# remade otherwise if dependencies are not being generated. The alternative +# is to maintain an accurate list of objects with a dependency on config.h. -exec += $(objects) # Make the objects build targets. +exec += $(objects) # Make the objects build targets. -bindir_$b := $b/$(projectName)$(EXEEXT) # Install executable to bindir. +bindir_$b := $b/$(projectName)$(EXEEXT) # Install executable to bindir. $(bindir_$b): $(objects) $b/moof/libmoof.a $b/stlplus/libstlplus.a $(Q)$(link_cc)