File: Makefile

package info (click to toggle)
vimb 3.7.0%2Bgit20240706-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 848 kB
  • sloc: ansic: 9,069; javascript: 568; makefile: 126; xml: 26; sh: 20
file content (20 lines) | stat: -rw-r--r-- 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CPPFLAGS = -I ../

include ../config.mk

TEST_PROGS = test-util \
			 test-shortcut \
			 test-handler \
			 test-file-storage

all: $(TEST_PROGS)
	$(Q)LD_LIBRARY_PATH="$(LD_LIBRARY_PATH):." gtester --verbose $(TEST_PROGS)

${TEST_PROGS}: ../$(SRCDIR)/vimb.so

test-%: test-%.c
	@echo "${CC} $@"
	$(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< ../$(SRCDIR)/vimb.so $(LDFLAGS)

clean:
	$(RM) $(TEST_PROGS)