Makefile

changeset 13
973a377aa562
parent 9
3e99497dca33
child 14
7a98c853715e
     1.1 diff -r 0c5bddf0289e -r 973a377aa562 Makefile
     1.2 --- a/Makefile	Sun Nov 28 22:05:07 2010 +0000
     1.3 +++ b/Makefile	Sun Nov 28 23:05:31 2010 +0000
     1.4 @@ -278,8 +278,8 @@
     1.5  # SDL support
     1.6  ####
     1.7  ifeq ($(ENABLE_SDL),yes)
     1.8 -	LIBLNK		+=	`sdl-config --libs`
     1.9 -	CFLAGS		+=	`sdl-config --cflags`
    1.10 +	LIBLNK		+=	$(shell sdl-config --libs)
    1.11 +	CFLAGS		+=	$(shell sdl-config --cflags)
    1.12  endif
    1.13  
    1.14  
    1.15 @@ -322,8 +322,9 @@
    1.16  	@echo $(NEWBUILD) > .buildnum
    1.17  
    1.18  versionheader:
    1.19 -	@sed -e 's/@@date@@/$(shell LC_ALL=C date)/g'			\
    1.20 -		 -e 's/@@time@@/$(shell LC_ALL=C date +%T)/g'		\
    1.21 +	@sed -e 's/@@datetime@@/$(shell LC_ALL=C date +"%a %d-%b-%Y %T %Z")/g'		\
    1.22 +		 -e 's/@@date@@/$(shell LC_ALL=C date +"%a %d-%b-%Y")/g'			\
    1.23 +		 -e 's/@@time@@/$(shell LC_ALL=C date +"%T %Z")/g'		\
    1.24  		 -e 's/@@whoami@@/$(shell whoami)/g'				\
    1.25  		 -e 's/@@hostname@@/$(shell hostname)/g'			\
    1.26  		 -e 's|@@compiler@@|$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1 | sed -e "s;|;/;")|g'	\
    1.27 @@ -336,7 +337,7 @@
    1.28  		 -e 's/@@vcsrev@@/$(VER_VCSREV)/g'					\
    1.29  		 -e 's/@@vcsstr@@/$(VER_VCSSTR)/g'					\
    1.30  		 -e 's/@@fullverstr@@/$(VER_FULLSTR)/g'				\
    1.31 -		 -e 's/@@cflags@@/$(CFLAGS)/g'						\
    1.32 +		 -e 's:@@cflags@@:$(CFLAGS):g'						\
    1.33  		 < src/version.h.in > src/version.h
    1.34  
    1.35  # version.h creation stuff based on code from the Xen makefile
    1.36 @@ -357,7 +358,8 @@
    1.37  	@echo 'dep/*.d' >> .hgignore
    1.38  	@echo '*~' >> .hgignore
    1.39  	@echo '.*.sw?' >> .hgignore
    1.40 -	@echo '#define VER_COMPILE_DATE	"@@date@@"'				> src/version.h.in
    1.41 +	@echo '#define VER_COMPILE_DATETIME	"@@datetime@@"'			> src/version.h.in
    1.42 +	@echo '#define VER_COMPILE_DATE	"@@date@@"'				>> src/version.h.in
    1.43  	@echo '#define VER_COMPILE_TIME	"@@time@@"'				>> src/version.h.in
    1.44  	@echo '#define VER_COMPILE_BY		"@@whoami@@"'		>> src/version.h.in
    1.45  	@echo '#define VER_COMPILE_HOST	"@@hostname@@"'			>> src/version.h.in