summaryrefslogtreecommitdiff
path: root/util/Makefile.sample
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
commita7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (patch)
tree41c4deec1fdfbafd7821b4ca7a9772ac0abd92f5 /util/Makefile.sample
Imported Upstream version 2.9.3upstream/2.9.3
Diffstat (limited to 'util/Makefile.sample')
-rw-r--r--util/Makefile.sample28
1 files changed, 28 insertions, 0 deletions
diff --git a/util/Makefile.sample b/util/Makefile.sample
new file mode 100644
index 0000000..2976dd5
--- /dev/null
+++ b/util/Makefile.sample
@@ -0,0 +1,28 @@
+# Makefile for ipmi_sample program
+#
+TARGETS = ipmi_sample ipmi_sample_evt
+incl_dir = /usr/include
+CFLAGS_SAM = -O2 -g -I. -DLINUX
+LDFLAGS = -lpthread
+# if building without lanplus, comment out these two lines
+CFLAGS_SAM += -DHAVE_LANPLUS
+LDFLAGS += -lcrypto
+
+# see /usr/lib/libipmiutil.a
+LDFLAGS += -lipmiutil
+
+all: $(TARGETS)
+
+ipmi_sample: ipmi_sample.c $(incl_dir)/ipmicmd.h
+ $(CC) $(CFLAGS_SAM) -c ipmi_sample.c
+ $(CC) -g -O2 -o ipmi_sample ipmi_sample.o $(LDFLAGS)
+
+ipmi_sample_evt: ipmi_sample_evt.c isensor.c ievents.c
+ $(CC) $(CFLAGS_SAM) -c ipmi_sample_evt.c
+ $(CC) $(CFLAGS_SAM) -o isensor2.o -c isensor.c
+ $(CC) $(CFLAGS_SAM) -DSENSORS_OK -o ievents2.o -c ievents.c
+ $(CC) -g -O2 -o ipmi_sample_evt ipmi_sample_evt.o isensor2.o ievents2.o $(LDFLAGS)
+
+clean-generic:
+ rm -f $(TARGETS) *.o *.tmp
+