📄 rules.mak
字号:
include $(TOPDIR)/Local.makall: target.objifneq ($(prefix),) CFLAGS+= -DPREFIX=\"$(prefix)\"endififneq ($(basedir),) CFLAGS+= -DBASEDIR=\"$(basedir)\"endififneq ($(etc),) CFLAGS+= -DETC=\"$(etc)\"else CFLAGS+= -DETC=\"/etc/xca\"endifSRCS=$(patsubst %.o, %.cpp, $(OBJS))# recompile allre: clean all# how to create a moc_* filemoc_%.cpp: %.h %.cpp $(MOC) $< -o $@# how to create the headerfile from the *.ui%.h: %.ui $(UIC) -o $@ $<# same for the *.cpp file from the *.ui%.cpp: %.h %.ui $(UIC) -o $@ -impl $^# default compile rule%.o: %.cpp $(TOPDIR)/Local.mak $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@# partial linking of objects in one directorytarget.obj: $(OBJS) $(LD) -r -o $@ $(OBJS)# delete the crapclean: rm -f *~ *.o *.obj $(DELFILES)distclean: clean rm -f .depend.depend: $(SRCS) $(CC) -MM $(CPPFLAGS) $(CFLAGS) $(SRCS) > $@.SECONDARY:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -