SRC= $(wildcard *.c) OBJ= $(SRC:.c=.o) hibliba : $(HIBLIBA) $(HIBLIBA) : $(OBJ) @echo "Linking the static library : hiblib.a" @$(AR) -o hibliba.a $(OBJ) @echo "Copying files" @mv *.a $(HIBLIBA_PATH) @echo "********************** hibliba.a done" .c.o : %.c mkhibliba.h $(HIBLIBA_HEADERS) $(HIBLIB_HEADERS) $(HEADERS_PATH)/internal_types.h $(KERNEL_HEADERS) @echo "Building file: $<" @$(CC) $(CFLAGS) $(ASFLAGS) $< -I$(HIBLIB_PATH) -I$(HIBLIBA_PATH) -I$(HEADERS_PATH) -I$(KERNEL_PATH) $(CALCS) $(TEST_HIBLIB) clean : @echo "Removing *.o files" @rm -fv *.o @echo "Removing hiblib.a" @rm -fv $(HIBLIBA_PATH)/*.a