Makefile 427 B

123456789101112131415161718192021222324
  1. # Makefile for lppf
  2. # Copyright (C) 2007 - 2008, Daniel Ekström
  3. TARGET = lppf
  4. OBJS = libppf.o lppf.o
  5. CC = gcc
  6. CFLAGS=-Wall -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  7. LINK = $(CC) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  8. VPATH = ./src
  9. .c.o:
  10. $(CC) $(CFLAGS) -c $(VPATH)/$*.c
  11. all: $(TARGET)
  12. $(TARGET): $(OBJS)
  13. $(LINK) -o $(TARGET) $(OBJS) $(LFLAGS)
  14. clean:
  15. -rm -f $(TARGET) $(OBJS) $(DEPENDENCIES)
  16. run:
  17. ./$(TARGET)