aboutsummaryrefslogtreecommitdiffstats
path: root/modules/basic/Makefile
blob: bb136f3577f8b8a1bc5c5899ba00e059a0644ade (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ROOT = ../..

CFLAGS  =
LDFLAGS =

all: basic.so basic.doc

%.so: %.o
	gcc -shared $(LDFLAGS) -o $@ $<

%.o: %.c
	gcc -ggdb3 -Wall -I$(ROOT)/src $(CFLAGS) -fPIC -c $<

%.doc: %.c
	$(ROOT)/lib-src/make-docfile $< > $@