libk  Diff

Differences From Artifact [adae292a57]:

To Artifact [86d81e4675]:


     9      9   headers = $(wildcard *.h) $(gen-headers)
    10     10   
    11     11   tools    = $(filter     exe.%.c,   $(src))
    12     12   nontools = $(filter-out exe.%.c,   $(src))
    13     13   cobjects = $(filter     %.c,       $(nontools))
    14     14   sobjects = $(filter %.${TARGET}.s, $(nontools))
    15     15   
    16         -cflags = -isystem ${OUT} -nostdlib ${COMPLIB} -L${OUT} -lk
           16  +cflags = -isystem ${OUT} -fPIC -nostdlib ${COMPLIB} -L${OUT} -lk
    17     17   
    18     18   obj: $(cobjects:%.c=${OUT}/$(mod).%.o) \
    19     19   	 $(sobjects:%.s=${OUT}/$(mod).%.o)
    20     20   tool: $(tools:exe.%.c=${OUT}/$(mod).%) \
    21     21   	  ${OUT}/libk.a
    22     22   
    23     23   def: $(headers:%=${OUT}/k/%)