aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorkraxel <kraxel>2004-04-21 11:55:44 +0000
committerkraxel <kraxel>2004-04-21 11:55:44 +0000
commitc4d7dacb41039e087d20b8889a4d13bd4c9928f2 (patch)
tree0aef1f53f2e8cd55c4db8915d9d9a1265dd97adc /GNUmakefile
downloadinput-c4d7dacb41039e087d20b8889a4d13bd4c9928f2.tar.gz
Initial revision
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..0479955
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,62 @@
+# config
+-include Make.config
+include mk/Variables.mk
+
+# add our flags + libs
+CFLAGS += -DVERSION='"$(VERSION)"'
+LDLIBS += -lm
+
+# build
+TARGETS := lsinput input-events input-kbd input-send input-recv lircd.conf
+HEADERS := EV.h REL.h KEY.h BTN.h BUS.h
+
+# default target
+all: build
+
+
+#################################################################
+# poor man's autoconf ;-)
+
+include mk/Autoconf.mk
+
+define make-config
+LIB := $(LIB)
+endef
+
+
+########################################################################
+# rules
+
+build: $(TARGETS)
+
+$(HEADERS): name.sh
+ sh name.sh $* > $@
+
+lircd.conf: lirc.sh
+ sh lirc.sh > $@
+
+lsinput: lsinput.o input.o
+input-events: input-events.o input.o
+input-kbd: input-kbd.o input.o
+input-send: input-send.o input.o tcp.o
+input-recv: input-recv.o input.o tcp.o
+
+input.o: input.c $(HEADERS)
+
+install: build
+ install -d $(bindir)
+ install -s lsinput input-events input-kbd input-send input-recv $(bindir)
+
+clean:
+ -rm -f *.o $(depfiles)
+
+realclean distclean: clean
+ -rm -f Make.config
+ -rm -f $(TARGETS) $(HEADERS) *~ xpm/*~ *.bak
+
+#############################################
+
+include mk/Compile.mk
+include mk/Maintainer.mk
+-include $(depfiles)
+