Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 24cXX.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#ifndef _24CXX_H_
#define _24CXX_H_
#include <linux/i2c-dev.h>
#include <i2c/smbus.h>

#define EEPROM_TYPE_UNKNOWN 0
#define EEPROM_TYPE_8BIT_ADDR 1
Expand Down
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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