File: makefile

package info (click to toggle)
openbsd-inetd 0.20140418-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 804 kB
  • ctags: 1,294
  • sloc: ansic: 17,250; sh: 87; makefile: 74
file content (23 lines) | stat: -rw-r--r-- 411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- /dev/null
+++ b/Makefile.debian
@@ -0,0 +1,20 @@
+CFLAGS ?= -g -O2
+
+DEFS := -DLIBWRAP $(shell pkg-config --cflags libbsd-overlay)
+LIBS := -lwrap $(shell pkg-config --libs libbsd-overlay)
+
+CPPFLAGS += $(DEFS)
+
+inetd_OBJECTS := inetd.o
+
+all: inetd
+
+.c.o:
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+
+inetd: $(inetd_OBJECTS)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+clean:
+	rm -f inetd inetd.o
+