Makefile 158 B

12345678910
  1. SRC=$(wildcard *.c)
  2. OBJ=$(patsubst %.c,%.o,$(SRC))
  3. all: libpthread.a
  4. libpthread.a: $(OBJ)
  5. $(AR) -rcs $@ $(OBJ)
  6. %.o: %.c
  7. $(CC) $(CFLAGS) -I . -c $< -o $@