diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2022-02-19 17:47:14 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2022-03-12 14:38:58 +0000 |
commit | decf50e2eb8f4c446d6ac60512fd3522426deb2e (patch) | |
tree | 2a629827cdf4ad0de9ac6899dc82366267fe950b /Makefile | |
parent | 7de83aa95c2a25de4bfc19dbcd51ae9c6e9337f7 (diff) | |
download | flashrom-decf50e2eb8f4c446d6ac60512fd3522426deb2e.tar.gz flashrom-decf50e2eb8f4c446d6ac60512fd3522426deb2e.tar.bz2 flashrom-decf50e2eb8f4c446d6ac60512fd3522426deb2e.zip |
Makefile: use libflashrom.a as input to build the flashrom executable
Change-Id: Ib0091a23611cd5a1d915e56c6d0f061d74198e88
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/62198
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -905,8 +905,8 @@ override LDFLAGS += -lrt endif endif -LIBFLASHROM_OBJS = $(CHIP_OBJS) $(PROGRAMMER_OBJS) $(LIB_OBJS) -OBJS = $(CLI_OBJS) $(LIBFLASHROM_OBJS) +OBJS = $(CHIP_OBJS) $(PROGRAMMER_OBJS) $(LIB_OBJS) + all: config $(PROGRAM)$(EXEC_SUFFIX) $(PROGRAM).8 ifeq ($(ARCH), x86) @@ -973,10 +973,10 @@ config: %.o: %.c config $(CC) -MMD $(CFLAGS) $(CPPFLAGS) $(FLASHROM_CFLAGS) $(FEATURE_FLAGS) $(SCMDEF) -o $@ -c $< -$(PROGRAM)$(EXEC_SUFFIX): $(OBJS) - $(CC) -o $(PROGRAM)$(EXEC_SUFFIX) $(OBJS) $(LDFLAGS) +$(PROGRAM)$(EXEC_SUFFIX): $(CLI_OBJS) libflashrom.a + $(CC) -o $@ $^ $(LDFLAGS) -libflashrom.a: $(LIBFLASHROM_OBJS) +libflashrom.a: $(OBJS) $(AR) rcs $@ $^ $(RANLIB) $@ |