libk  Diff

Differences From Artifact [d3e7936df2]:

To Artifact [47b194b965]:


    92     92   uninstall: $(header-dir)/k $(lib-dir)/k
    93     93   	rm -rf $^
    94     94   
    95     95   lists = moddirs functions assemblies fnobjects rtobjects binaries binmods POSIX
    96     96   dbg:
    97     97   	@echo -e lists: $(foreach var, $(lists), "\\n - \\e[1m$(var)\\e[m = $($(var))")
    98     98   
    99         -%.obj: %/makefile $(TARGET).calls $(OUT)
           99  +%.obj: %/makefile $(TMP)/calls.h $(TMP)/calls.s $(OUT)
   100    100   	cd $* && $(MAKE) obj
   101    101   
   102    102   %.tool: %/makefile $(OUT)
   103    103   	cd $* && $(MAKE) tool
   104    104   
   105    105   %.dbg: %/makefile $(OUT)
   106    106   	cd $* && $(MAKE) dbg
   107    107   
   108    108   %.def: %/makefile $(TMP)/typesize.def $(OUT) $(OUT)/k
   109    109   	cd $* && $(MAKE) def
   110    110   
   111         -%.calls: arch/makefile
   112         -	cd arch && $(MAKE) $(TMP)/calls.$*.s
          111  +.PRECIOUS: $(TMP)/calls.%
          112  +$(TMP)/calls.%: arch/makefile
          113  +	$(MAKE) -C arch $@
   113    114   
   114    115   $(TMP)/typesize.def: arch/makefile $(TMP)
   115         -	cd arch && $(MAKE) $@
          116  +	$(MAKE) -C arch $@
   116    117   
   117    118   $(OUT)/libk.so: $(fnobjects) 
   118    119   	ld -shared $(COMPLIB) -o $@ $^
   119    120   	@# $(CC) -shared -fPIC -nostdlib $(COMPLIB) -o $@ $(OUT)/*.o
   120    121   
   121    122   $(OUT)/boot.o: $(rtobjects)
   122    123   	ld -r $^ -o $(OUT)/boot.o