summaryrefslogtreecommitdiff
path: root/sofort/core/_infer/infer_modern.mk
blob: e7db2a6118465931bfb5dc664ef6388cc67ec9df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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 $@ $^