File: Make.rules

package info (click to toggle)
efivar 0.15-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 428 kB
  • ctags: 267
  • sloc: ansic: 1,985; makefile: 140; asm: 31
file content (28 lines) | stat: -rw-r--r-- 614 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
%.a :
	$(AR) -cvqs $@ $^

% : %.o
	$(CCLD) $(ccldflags) -o $@ $^ $(foreach lib,$(LIBS),-l$(lib))

%.so.$(SONAME_VERSION) : 
	$(CCLD) $(cflags) -Wl,-soname,$(SONAME) $(ccldflags) $(LIBFLAGS) $^ -o $@ $(foreach lib,$(LIBS),-l$(lib))

%.so : %.so.$(SONAME_VERSION)
	ln -sf $^ $@

%.o: %.c
	$(CC) $(cflags) $(CPPFLAGS) -c -o $@ $<

.%.c.P : %.c
	$(CC) $(cflags) $(CPPFLAGS) -DEFIVAR_BUILD_ENVIRONMENT -M -MM -MF $@ $^

.%.h.P : %.h
	$(CC) $(cflags) $(CPPFLAGS) -DEFIVAR_BUILD_ENVIRONMENT -M -MM -MF $@ $^

%.S: %.c
	$(CC) $(cflags) $(CPPFLAGS) -S $< -o $@

%.E: %.c
	$(CC) $(cflags) $(CPPFLAGS) -E $< -o $@

%.c : %.h