asuswrt-merlin.ng/release/src-rt-5.02axhnd.675x/router-sysdep.rt-ax56u/dhrystone/Makefile

49 lines
1 KiB
Makefile

#
# In most cases, you only need to modify this first section.
#
EXE = dry
LCFLAGS = -O3
all dynamic install: $(EXE) generic_exe_install
clean: generic_clean
rm -f $(INSTALL_DIR)/bin/$(EXE)
#
# Set our CommEngine directory (by splitting the pwd into two words
# at /userspace and taking the first word only).
# Then include the common defines under CommEngine.
#
CURR_DIR := $(shell pwd)
BUILD_DIR:=$(HND_SRC)
include $(BUILD_DIR)/make.common
ifeq ("$(ARCH)","mips")
LCFLAGS += -mno-shared
endif
#
# Implicit rule will make the .c into a .o
# Implicit rule is $(CC) -c $(CPPFLAGS) $(CFLAGS)
# See Section 10.2 of Gnu Make manual
#
$(EXE): dry.c
$(CC) $(LCFLAGS) -c dry.c -o dry.o
$(CC) $(LCFLAGS) -DPASS2 dry.c dry.o -o $(EXE)
#
# Include the rule for making dependency files.
# The '-' in front of the second include suppresses
# error messages when make cannot find the .d files.
# It will just regenerate them.
# See Section 4.14 of Gnu Make.
#
include $(BUILD_DIR)/make.deprules
-include $(OBJS:.o=.d)