📄 makefile
字号:
# # # Author: Seeger Chin# e-mail: seeger.chin@gmail.com# # Copyright (C) 2006 Ingenic Semiconductor Inc.# # This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License version 2 as# published by the Free Software Foundation.# # # select which module to compile, set value to 1 for the module to compile, remain blank for the module not to compile# -----------------------------# ------------------------------CC := mipsel-linux-gccAR := mipsel-linux-ar rcsvLD := mipsel-linux-ldOBJCOPY := mipsel-linux-objcopyNM := mipsel-linux-nmOBJDUMP := mipsel-linux-objdumpCFLAGS := -mips32 -O2 -mno-abicalls -fno-pic -fno-builtin \ -fno-exceptions -ffunction-sections -finit-priority \ -fomit-frame-pointer -msoft-float -G 0LIBS := -lstdc++ -lc -lm -lgccOSDIR := ../../../mipsUCOSDIR := ../../../srcCOMMONDIR := ../CommonRESDIR := ../ResUCGUIDIR := ../..UCFSDIR := ../../../ucfsTOP := ..LIBDIR := ../../../LIBSLIBNAME := mp3player.aSOURCES = $(wildcard *.c)CFLAGS += -I$(UCGUIDIR)/Font -I$(UCGUIDIR)/LCDDriver -I$(UCGUIDIR)/Config -I$(UCGUIDIR)/Core \ -I$(UCGUIDIR)/ConvertColor \ -I$(UCGUIDIR)/WM \ -I$(UCGUIDIR)/Widget \ -I$(UCGUIDIR)/MemDevCFLAGS += -I$(UCFSDIR)CFLAGS += -I$(COMMONDIR)CFLAGS += -I$(RESDIR)CFLAGS += -I$(UCOSDIR)CFLAGS += -I$(OSDIR)VPATH += $(UCGUIDIR) $(CORE) $(UCGUIDIR)/LCDDriver $(UCGUIDIR)/Font $(UCGUIDIR)/Config \ $(UCGUIDIR)/ConvertColor \ $(UCGUIDIR)/WM \ $(UCGUIDIR)/Widget \ $(UCGUIDIR)/MemDevVPATH += $(UCFSDIR)VPATH += $(COMMONDIR)VPATH += $(RESDIR)VPATH += $(UCOSDIR)VPATH += $(OSDIR)OBJS := $(addsuffix .o , $(basename $(notdir $(SOURCES)))).SUFFIXES: .c .oall: $(OBJS) $(CC) -c $(CFLAGS) -o $@ $< $(AR) $(LIBDIR)/$(LIBNAME) $(OBJS)# $(RANLIB) $(LIBDIR)//$(LIBNAME) .c.o: $(CC) $(CFLAGS) -o $@ -c $<.cpp.o: $(CC) $(CFLAGS) -fno-rtti -fvtable-gc -o $@ -c $<.S.o: $(CC) $(CFLAGS) -D_ASSEMBLER_ -D__ASSEMBLY__ -o $@ -c $<clean: rm -f *~ *.o $(LIBDIR)/$(LIBNAME) makefile.bak .dependdep: dependdepend: $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -