Revision de2f77d8 common.mak

View differences:

common.mak
2 2
# common bits used by all libraries
3 3
#
4 4

  
5
VPATH = $(SRC_PATH_BARE)/lib$(NAME)
6
SRC_DIR = "$(VPATH)"
5
LIBSRC = $(SRC_PATH_BARE)/lib$(NAME)
6

  
7
vpath %.c $(LIBSRC)
8
vpath %.h $(LIBSRC)
9
vpath %.S $(LIBSRC)
10

  
11
SRC_DIR = "$(LIBSRC)"
7 12

  
8 13
CFLAGS   += $(CFLAGS-yes)
9 14
OBJS     += $(OBJS-yes)
......
44 49
%.ho: %.h
45 50
	$(CC) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $<
46 51

  
47
ALLHEADERS = $(subst $(VPATH)/,,$(wildcard $(VPATH)/*.h))
52
ALLHEADERS = $(subst $(LIBSRC)/,,$(wildcard $(LIBSRC)/*.h))
48 53
checkheaders: $(filter-out %_template.ho,$(ALLHEADERS:.h=.ho))
49 54

  
50 55
depend dep: $(SRCS)

Also available in: Unified diff