Makefile 359 B

123456789101112131415161718192021
  1. TARGET = sfnconv
  2. include ../libsfn/Makefile.env
  3. SRCS = $(wildcard *.c)
  4. OBJS = $(SRCS:.c=.o)
  5. all: $(TARGET)
  6. %: %.c
  7. $(CC) $(CFLAGS) $< -c $@
  8. $(TARGET): $(OBJS)
  9. ifeq ($(wildcard ../libsfn/*.o),)
  10. @make -C ../libsfn all
  11. endif
  12. $(CC) ../libsfn/*.o ../libsfn/potracelib/*.o $(EXTRA) $(OBJS) $(LIBS) -o $(TARGET)
  13. clean:
  14. @rm $(TARGET) *.o 2>/dev/null || true