Makefile 300 B

1234567891011121314151617
  1. CC = cc
  2. CFLAGS = -Os -Wall
  3. all: example
  4. example: findlocale.o example.o
  5. $(CC) example.o findlocale.o -o example
  6. findlocale.o: findlocale.c findlocale.h
  7. $(CC) $(CFLAGS) -c findlocale.c
  8. example.o: example.c findlocale.h
  9. $(CC) $(CFLAGS) -c example.c
  10. clean:
  11. $(RM) findlocale.o example.o example