add time tracking interface
[AquilaOS.git] / system / fbterm / Makefile
blobdc160df3b3def14c48460b6191ba622504c540e9
1 export
3 PDIR := $(SRCDIR)/system/fbterm
4 CWD != realpath --relative-to=$(SRCDIR) .
6 SYSCFLAGS += -I$(PDIR)/include
7 SYSLDLIBS += -lpthread
9 include Build.mk
11 all: builtin.o fbterm
13 fbterm: builtin.o
14 @$(ECHO) " ELF " $(CWD)/$@;
15 @$(SYSCC) $(SYSLDFLAGS) $< $(SYSLDLIBS) -o $@;
17 builtin.o: $(obj-y) $(dirs-y)
18 @$(ECHO) " SYSLD " $(CWD)/builtin.o;
19 @$(SYSLD) $(SYSLDFLAGS) -r $(obj-y) $(patsubst %/,%/builtin.o, $(dirs-y)) -o builtin.o;
21 .PHONY: $(dirs-y)
22 $(dirs-y): $(patsubst %/,%/Makefile, $(dirs-y))
23 @$(ECHO) " MK " $(CWD)/$@
24 @$(MAKE) -C $@ $(param)
26 %.o:%.c
27 @$(ECHO) " SYSCC " $(CWD)/$@;
28 @$(SYSCC) $(SYSCFLAGS) -c $< -o $@
30 .PHONY: clean
31 clean: param = clean
32 clean: $(dirs-y)
33 @$(ECHO) " RM " $(obj-y) builtin.o fbterm
34 @$(RM) -f fbterm builtin.o $(obj-y)