From 8590fe314d69752b7ab0f654dca78d25668cb028 Mon Sep 17 00:00:00 2001 From: Sebastien Lorquet Date: Fri, 26 Aug 2016 07:09:04 -0600 Subject: [PATCH] apps/system/system: Use Application.mk in Makefile. --- system/system/Makefile | 59 +----------------------------------------- 1 file changed, 1 insertion(+), 58 deletions(-) diff --git a/system/system/Makefile b/system/system/Makefile index e06069e81..e2d46fc6b 100644 --- a/system/system/Makefile +++ b/system/system/Makefile @@ -42,61 +42,4 @@ include $(APPDIR)/Make.defs ASRCS = CSRCS = system.c -AOBJS = $(ASRCS:.S=$(OBJEXT)) -COBJS = $(CSRCS:.c=$(OBJEXT)) - -SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) -OBJS = $(AOBJS) $(COBJS) - -ifeq ($(CONFIG_WINDOWS_NATIVE),y) - BIN = ..\..\libapps$(LIBEXT) -else -ifeq ($(WINTOOL),y) - BIN = ..\\..\\libapps$(LIBEXT) -else - BIN = ../../libapps$(LIBEXT) -endif -endif - -ROOTDEPPATH = --dep-path . - -# Common build - -VPATH = - -all: .built -.PHONY: install preconfig context depend clean distclean - -$(AOBJS): %$(OBJEXT): %.S - $(call ASSEMBLE, $<, $@) - -$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c - $(call COMPILE, $<, $@) - -.built: $(OBJS) - $(call ARCHIVE, $(BIN), $(OBJS)) - $(Q) touch .built - -install: - -preconfig: - -context: - -# Create dependencies - -.depend: Makefile $(SRCS) - $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep - $(Q) touch $@ - -depend: .depend - -clean: - $(call DELFILE, .built) - $(call CLEAN) - -distclean: clean - $(call DELFILE, Make.dep) - $(call DELFILE, .depend) - --include Make.dep +include $(APPDIR)/Application.mk