Skip to content

Commit

Permalink
gard: enable building with -DDEBUG for ccan list
Browse files Browse the repository at this point in the history
Reviewed-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
stewartsmith committed Jul 19, 2017
1 parent 3a8e6bf commit f2b2d51
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion external/gard/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ OBJS = version.o gard.o
LIBFLASH_FILES := libflash.c libffs.c ecc.c blocklevel.c file.c
LIBFLASH_OBJS := $(addprefix libflash-, $(LIBFLASH_FILES:.c=.o))
LIBFLASH_SRC := $(addprefix libflash/,$(LIBFLASH_FILES))
OBJS += $(LIBFLASH_OBJS)
CCAN_FILES := list.c
CCAN_OBJS := $(addprefix ccan-list-, $(CCAN_FILES:.c=.o))
CCAN_SRC := $(addprefix ccan/list/,$(CCAN_FILES))
OBJS += $(LIBFLASH_OBJS) $(CCAN_OBJS)
OBJS += common-arch_flash.o
EXE = gard

Expand All @@ -29,10 +32,14 @@ version.c: .version
$(CC) $(CFLAGS) -c $< -o $@

$(LIBFLASH_SRC): | links
$(CCAN_SRC): | links

$(LIBFLASH_OBJS): libflash-%.o : libflash/%.c
$(CC) $(CFLAGS) -c $< -o $@

$(CCAN_OBJS): ccan-list-%.o: ccan/list/%.c
$(Q_CC)$(CC) $(CFLAGS) -c $< -o $@

$(EXE): $(OBJS)
$(CC) $(LDFLAGS) $(CFLAGS) $^ -o $@

Expand Down

0 comments on commit f2b2d51

Please sign in to comment.