Merge pull request #501 from tsipinakis/bugfix/500
Do not expand config.mk variables on assignment
This commit is contained in:
		
						commit
						b5c2cdafb2
					
				
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							| @ -42,8 +42,8 @@ $(error "$(PKG_CONFIG) failed!") | |||||||
| endif | endif | ||||||
| endif | endif | ||||||
| 
 | 
 | ||||||
| CFLAGS += -I. ${INCS} | CFLAGS  := ${DEFAULT_CPPFLAGS} ${CPPFLAGS} ${DEFAULT_CFLAGS} ${CFLAGS} -I. ${INCS} | ||||||
| LDFLAGS+= -L. ${LIBS} | LDFLAGS := ${DEFAULT_LDFLAGS} ${LDFLAGS} -L. ${LIBS} | ||||||
| 
 | 
 | ||||||
| SRC := $(sort $(shell find src/ -name '*.c')) | SRC := $(sort $(shell find src/ -name '*.c')) | ||||||
| OBJ := ${SRC:.c=.o} | OBJ := ${SRC:.c=.o} | ||||||
| @ -53,7 +53,7 @@ TEST_OBJ := $(TEST_SRC:.c=.o) | |||||||
| .PHONY: all debug | .PHONY: all debug | ||||||
| all: doc dunst service | all: doc dunst service | ||||||
| 
 | 
 | ||||||
| debug: CFLAGS   += ${CFLAGS_DEBUG} | debug: CFLAGS   += ${CPPFLAGS_DEBUG} ${CFLAGS_DEBUG} | ||||||
| debug: LDFLAGS  += ${LDFLAGS_DEBUG} | debug: LDFLAGS  += ${LDFLAGS_DEBUG} | ||||||
| debug: CPPFLAGS += ${CPPFLAGS_DEBUG} | debug: CPPFLAGS += ${CPPFLAGS_DEBUG} | ||||||
| debug: all | debug: all | ||||||
|  | |||||||
| @ -13,9 +13,9 @@ PKG_CONFIG ?= pkg-config | |||||||
| #STATIC= -DSTATIC_CONFIG # Warning: This is deprecated behavior
 | #STATIC= -DSTATIC_CONFIG # Warning: This is deprecated behavior
 | ||||||
| 
 | 
 | ||||||
| # flags
 | # flags
 | ||||||
| CPPFLAGS += -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\" | DEFAULT_CPPFLAGS = -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\" | ||||||
| CFLAGS   := -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${CPPFLAGS} ${CFLAGS} | DEFAULT_CFLAGS   = -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} | ||||||
| LDFLAGS  := -lm ${LDFLAGS} | DEFAULT_LDFLAGS  = -lm | ||||||
| 
 | 
 | ||||||
| CPPFLAGS_DEBUG := -DDEBUG_BUILD | CPPFLAGS_DEBUG := -DDEBUG_BUILD | ||||||
| CFLAGS_DEBUG   := -O0 | CFLAGS_DEBUG   := -O0 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Benedikt Heine
						Benedikt Heine