mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
1. Updated the SRC_URI to http://dl.lm-sensors.org/i2c-tools/ 2. Corrected the License to GPLv2+ as the "COPYING" file include these statements: "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version." (From OE-Core rev: d5fe5a93d310966d5389600c9e102f894772325b) Signed-off-by: Maxin B. John <maxin.john@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
73 lines
1.8 KiB
Makefile
73 lines
1.8 KiB
Makefile
# EEPROMER
|
|
#
|
|
# Licensed under the GNU General Public License.
|
|
|
|
EEPROMER_DIR := eepromer
|
|
|
|
EEPROMER_CFLAGS := -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
|
|
-Wcast-align -Wwrite-strings -Wnested-externs -Winline \
|
|
-W -Wundef -Wmissing-prototypes -Iinclude
|
|
|
|
EEPROMER_TARGETS := eepromer eeprom eeprog
|
|
|
|
#
|
|
# Programs
|
|
#
|
|
|
|
$(EEPROMER_DIR)/eepromer: $(EEPROMER_DIR)/eepromer.o
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
$(EEPROMER_DIR)/eeprom: $(EEPROMER_DIR)/eeprom.o
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
$(EEPROMER_DIR)/eeprog: $(EEPROMER_DIR)/eeprog.o $(EEPROMER_DIR)/24cXX.o
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
#
|
|
# Objects
|
|
#
|
|
|
|
$(EEPROMER_DIR)/eepromer.o: $(EEPROMER_DIR)/eepromer.c
|
|
$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
|
|
|
|
$(EEPROMER_DIR)/eeprom.o: $(EEPROMER_DIR)/eeprom.c
|
|
$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
|
|
|
|
$(EEPROMER_DIR)/eeprog.o: $(EEPROMER_DIR)/eeprog.c
|
|
$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
|
|
|
|
$(EEPROMER_DIR)/24cXX.o: $(EEPROMER_DIR)/24cXX.c
|
|
$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
|
|
|
|
#
|
|
# Commands
|
|
#
|
|
|
|
all-eepromer: $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
|
|
|
|
strip-eepromer: $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
|
|
strip $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
|
|
|
|
clean-eepromer:
|
|
$(RM) $(addprefix $(EEPROMER_DIR)/,*.o $(EEPROMER_TARGETS))
|
|
|
|
install-eepromer: $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
|
|
$(INSTALL_DIR) $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir)
|
|
for program in $(EEPROMER_TARGETS) ; do \
|
|
$(INSTALL_PROGRAM) $(EEPROMER_DIR)/$$program $(DESTDIR)$(sbindir) ; done
|
|
|
|
uninstall-eepromer:
|
|
for program in $(EEPROMER_TARGETS) ; do \
|
|
$(RM) $(DESTDIR)$(sbindir)/$$program ; \
|
|
$(RM) $(DESTDIR)$(man8dir)/$$program.8 ; done
|
|
|
|
all: all-eepromer
|
|
|
|
strip: strip-eepromer
|
|
|
|
clean: clean-eepromer
|
|
|
|
install: install-eepromer
|
|
|
|
uninstall: uninstall-eepromer
|