5 CFILES
:= $(foreach dir,$(SOURCES
),$(notdir $(wildcard $(dir)/*.c
)))
6 HFILES
:= source
/dundancy.h
7 OFILES
:= $(CFILES
:.c
=.o
)
10 INCLUDEDIR
:= /usr
/include
19 @
$(COMPILER
) $(OPTIONS
) -c
$< -o
$@
23 @
$(COMPILER
) -shared
$(OPTIONS
) -o
$< $(SOURCE
) -lc
29 install: $(HFILES
) $(OFILES
)
31 @cp
$(HFILES
) $(INCLUDEDIR
)
32 @cp
$(OFILES
) $(LIBDIR
)