diff --git a/24cXX.h b/24cXX.h index 7dcb35e..3edccd4 100644 --- a/24cXX.h +++ b/24cXX.h @@ -16,6 +16,7 @@ #ifndef _24CXX_H_ #define _24CXX_H_ #include +#include #define EEPROM_TYPE_UNKNOWN 0 #define EEPROM_TYPE_8BIT_ADDR 1 diff --git a/Makefile b/Makefile index e88cfa7..3f4fa4b 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,18 @@ -CFLAGS=-g -I. -Wall -O2 +CFLAGS=-g -I. -Wall -O2 -all: eeprog +all: eeprog -clean: +clean: rm -f eeprog eeprog.o 24cXX.o eeprog: eeprog.o 24cXX.o + $(CC) -o $@ $? -li2c eeprog-static: eeprog.o 24cXX.o - $(CC) -static -o $@ $? + $(CC) -static -o $@ $? -li2c + +.PHONY: install install-static +install: eeprog + install eeprog /usr/local/bin +install-static: eeprog-static + install eeprog-static /usr/local/bin/eeprog