File: Makefile

package info (click to toggle)
lsof 4.99.4%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,924 kB
  • sloc: ansic: 50,680; sh: 8,351; makefile: 1,194; perl: 940; awk: 214
file content (33 lines) | stat: -rw-r--r-- 530 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
24
25
26
27
28
29
30
31
32
33
HELPERS = \
	epoll \
	eventfd \
	mq_fork \
	mq_open \
	pidfd \
	pipe \
	pty \
	ux \
	mmap \
	\
	open_with_flags \
	\
	$(NULL)

CFLAGS  = -g -Wall -std=c99

.PHONY: clean all

all: $(HELPERS)
clean:
	rm -f $(HELPERS) *.o

# See
# https://stackoverflow.com/questions/19964206/weird-posix-message-queue-linking-issue-sometimes-it-doesnt-link-correctly
#
# We cannot use LDFLAGS here.
# -lrt must be at the end of the command line.
#
mq_open: mq_open.o
	$(CC) $(CFLAGS) -o $@ $< -lrt
mq_fork: mq_fork.o
	$(CC) $(CFLAGS) -o $@ $< -lrt