Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
all: generic
generic: ramspeed.c fltmem.c fltmark.c intmem.c intmark.c
- $(CC) $(CFLAGS) $^ -o ramspeed
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o ramspeed
i386: ramspeed.c i386/*.s i386/cpuinfo/*.s
- $(CC) $(CFLAGS) -DI386_ASM $^ -o ramspeed
+ $(CC) $(CFLAGS) -DI386_ASM $(LDFLAGS) $^ -o ramspeed
x86_64: ramspeed.c amd64/*.s
- $(CC) $(CFLAGS) -DAMD64_ASM $^ -o ramspeed
+ $(CC) $(CFLAGS) -DAMD64_ASM $(LDFLAGS) $^ -o ramspeed
clean:
rm -f *.o ramspeed
define RAMSPEED_BUILD_CMDS
cp -f package/ramspeed/Makefile $(@D)
- CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
- make -C $(@D) $(RAMSPEED_ARCH)
+ $(TARGET_CONFIGURE_OPTS) make -C $(@D) $(RAMSPEED_ARCH)
endef
define RAMSPEED_INSTALL_TARGET_CMDS