|
Packit |
d9282a |
# I2C tools for Linux
|
|
Packit |
d9282a |
#
|
|
Packit |
d9282a |
# Copyright (C) 2007-2012 Jean Delvare <jdelvare@suse.de>
|
|
Packit |
d9282a |
#
|
|
Packit |
d9282a |
# This program is free software; you can redistribute it and/or modify
|
|
Packit |
d9282a |
# it under the terms of the GNU General Public License as published by
|
|
Packit |
d9282a |
# the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
d9282a |
# (at your option) any later version.
|
|
Packit |
d9282a |
|
|
Packit |
d9282a |
DESTDIR =
|
|
Packit |
d9282a |
prefix = /usr/local
|
|
Packit |
d9282a |
bindir = $(prefix)/bin
|
|
Packit |
d9282a |
sbindir = $(prefix)/sbin
|
|
Packit |
d9282a |
mandir = $(prefix)/share/man
|
|
Packit |
d9282a |
man8dir = $(mandir)/man8
|
|
Packit |
d9282a |
incdir = $(prefix)/include
|
|
Packit |
d9282a |
libdir = $(prefix)/lib
|
|
Packit |
d9282a |
|
|
Packit |
d9282a |
INSTALL := install
|
|
Packit |
d9282a |
INSTALL_DATA := $(INSTALL) -m 644
|
|
Packit |
d9282a |
INSTALL_DIR := $(INSTALL) -m 755 -d
|
|
Packit |
d9282a |
INSTALL_PROGRAM := $(INSTALL) -m 755
|
|
Packit |
d9282a |
LN := ln -sf
|
|
Packit |
d9282a |
RM := rm -f
|
|
Packit |
d9282a |
|
|
Packit |
d9282a |
CC ?= gcc
|
|
Packit |
d9282a |
AR ?= ar
|
|
Packit |
d9282a |
|
|
Packit |
d9282a |
CFLAGS ?= -O2
|
|
Packit |
d9282a |
# When debugging, use the following instead
|
|
Packit |
d9282a |
#CFLAGS := -O -g
|
|
Packit |
d9282a |
CFLAGS += -Wall
|
|
Packit |
d9282a |
SOCFLAGS := -fpic -D_REENTRANT $(CFLAGS)
|
|
Packit |
d9282a |
|
|
Packit |
d9282a |
USE_STATIC_LIB ?= 0
|
|
Packit |
d9282a |
BUILD_STATIC_LIB ?= 1
|
|
Packit |
d9282a |
ifeq ($(USE_STATIC_LIB),1)
|
|
Packit |
d9282a |
BUILD_STATIC_LIB := 1
|
|
Packit |
d9282a |
endif
|
|
Packit |
d9282a |
|
|
Packit |
d9282a |
KERNELVERSION := $(shell uname -r)
|
|
Packit |
d9282a |
|
|
Packit |
d9282a |
.PHONY: all strip clean install uninstall
|
|
Packit |
d9282a |
|
|
Packit |
d9282a |
all:
|
|
Packit |
d9282a |
|
|
Packit |
d9282a |
EXTRA :=
|
|
Packit |
d9282a |
#EXTRA += eeprog py-smbus
|
|
Packit |
d9282a |
SRCDIRS := include lib eeprom stub tools $(EXTRA)
|
|
Packit |
d9282a |
include $(SRCDIRS:%=%/Module.mk)
|