Makefile 478 B

12345678910111213141516171819202122232425262728
  1. VERSION = 003
  2. CC = cc
  3. PREFIX = /usr/local
  4. CFLAGS = -std=c99 -O2 -fomit-frame-pointer -Wall -D_BSD_SOURCE -D_GNU_SOURCE
  5. LDFLAGS =
  6. OBJECTS = pcibx.o pcibx_device.o utils.o
  7. CFLAGS += -DVERSION_=$(VERSION)
  8. all: pcibx
  9. pcibx: $(OBJECTS)
  10. $(CC) $(CFLAGS) -o pcibx $(OBJECTS) $(LDFLAGS)
  11. install: all
  12. -install -o 0 -g 0 -m 755 pcibx $(PREFIX)/bin/
  13. clean:
  14. -rm -f *~ *.o *.orig *.rej pcibx
  15. # dependencies
  16. pcibx.o: pcibx.h utils.h
  17. pcibx_device.o: pcibx_device.h
  18. utils.o: utils.h