summaryrefslogtreecommitdiffhomepage
path: root/sofort/core/_infer/infer_modern.mk
blob: aaf3361cec3bb12e246298c06575fd40dc1ca28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# infer_modern.mk: modern make target- and inference rules.
# this file is covered by COPYING.SOFORT.

src/%.ao: 	$(SOURCE_DIR)/src/%.c
		$(CC) -c -o $@ $< $(CFLAGS_APP)

src/%.lo: 	$(SOURCE_DIR)/src/%.c
		$(CC) -c -o $@ $< $(CFLAGS_SHARED)

src/%.o: 	$(SOURCE_DIR)/src/%.c
		$(CC) -c -o $@ $< $(CFLAGS_STATIC)

$(SHARED_LIB):
		$(SHARED_LIB_CMD) $@ $^ $(SHARED_LIB_LDFLAGS) $(LDFLAGS_IMPLIB)

lib/%$(OS_ARCHIVE_EXT):
		mkdir -p lib
		rm -f $@
		$(AR) rcs $@ $^

srcs.tag:
		touch $@