Fix some errors in the clean target of the windows native build

This commit is contained in:
Gregory Nutt 2014-02-10 07:37:43 -06:00
parent c4c49ffbb3
commit f41e81e080

View File

@ -40,47 +40,47 @@
include $(APPDIR)/Make.defs include $(APPDIR)/Make.defs
ifeq ($(WINTOOL),y) ifeq ($(WINTOOL),y)
INCDIROPT = -w INCDIROPT = -w
endif endif
# NxPlayer Library # NxPlayer Library
ASRCS = ASRCS =
CSRCS = nxplayer.c CSRCS = nxplayer.c
# NxPlayer Application # NxPlayer Application
APPNAME = nxplayer APPNAME = nxplayer
PRIORITY = SCHED_PRIORITY_DEFAULT PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 2048 STACKSIZE = 2048
ifeq ($(CONFIG_NXPLAYER_COMMAND_LINE),y) ifeq ($(CONFIG_NXPLAYER_COMMAND_LINE),y)
CSRCS += nxplayer_main.c CSRCS += nxplayer_main.c
endif endif
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS) SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS) OBJS = $(AOBJS) $(COBJS)
ifeq ($(CONFIG_WINDOWS_NATIVE),y) ifeq ($(CONFIG_WINDOWS_NATIVE),y)
BIN = ..\..\libapps$(LIBEXT) BIN = ..\..\libapps$(LIBEXT)
else else
ifeq ($(WINTOOL),y) ifeq ($(WINTOOL),y)
BIN = ..\\..\\libapps$(LIBEXT) BIN = ..\\..\\libapps$(LIBEXT)
else else
BIN = ../../libapps$(LIBEXT) BIN = ../../libapps$(LIBEXT)
endif endif
endif endif
ROOTDEPPATH = --dep-path . ROOTDEPPATH = --dep-path .
# Common build # Common build
VPATH = VPATH =
all: .built all: .built
.PHONY: context depend clean distclean .PHONY: context depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
@ -119,7 +119,6 @@ depend: .depend
clean: clean:
$(call DELFILE, .built) $(call DELFILE, .built)
$(call CLEAN) $(call CLEAN)
$(Q) rm -rf ..$(DELIM)..$(DELIM)builtin$(DELIM)registry$(DELIM)$(APPNAME)_main.*
distclean: clean distclean: clean
$(call DELFILE, Make.dep) $(call DELFILE, Make.dep)