Revision 50a334e4 common.mak

View differences:

common.mak
18 18

  
19 19
ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale
20 20

  
21
CFLAGS := -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(OPTFLAGS)
21
CPPFLAGS += -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH)
22
CFLAGS := $(OPTFLAGS)
22 23

  
23 24
%.o: %.c
24
	$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
25
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
25 26

  
26 27
%.o: %.S
27
	$(AS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
28
	$(AS) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
28 29

  
29 30
%.ho: %.h
30
	$(CC) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $<
31
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $<
31 32

  
32 33
%.d: %.c
33 34
	$(DEPEND_CMD) > $@

Also available in: Unified diff