9 SOFLAGS
= -fPIC
-shared
13 CSRC
:= $(wildcard *.c
)
15 ASMSRC
:= $(wildcard *.S
)
17 OBJ
= $(CSRC
:%.c
=%.o
) $(ASMSRC
:%.S
=%.o
)
21 INSTALLPATH
= /usr
/local
/lib
23 PROCESSDEP
= @mkdir
-p
$(DEPDIR
); \
24 cp
$*.d
$(DEPDIR
)/$*.d
; \
25 sed
-e
's/\#.*//' -e
's/^[^:]*: *//' -e
's/ * \\$$//' -e
'/^$$/ d' -e
's/$$/:/' < $*.d
>> $(DEPDIR
)/$*.d
; \
30 $(CC
) $(CFLAGS
) $(SOFLAGS
) -o
$(EXE
) $(OBJ
) $(LIBS
)
32 @echo
"*** BUILD COMPLETE ***"
35 $(CC
) -c
$(CFLAGS
) $(MAKEDEPEND
) -o
$@
$<
39 $(CC
) -c
$(CFLAGS
) $(MAKEDEPEND
) -o
$@
$<
42 -include $(CSRC
:%.c
=$(DEPDIR
)/%.d
) $(ASMSRC
:%.S
=$(DEPDIR
)/%.d
)
46 cp
$(EXE
) $(INSTALLPATH
)
50 rm -f
$(INSTALLPATH
)/$(EXE
)
54 rm -f
$(OBJ
) $(EXE
); \