blob: e7302519c6be295b1d4d21192bdc6843555699af (
plain)
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
29
30
31
|
.POSIX:
default: all
include config.mk
INCLUDES=-I$(INCDIR) -I. -Inonstd/stubs
CFLAGS=$(INCLUDES) -g -fno-builtin -nostdinc -nostdlib -nodefaultlibs -Werror -Wall -Wextra -fPIC
all: .deps.mk headers
@$(MAKE) -f .deps.mk $@
.deps.mk: deps
.headers.mk: deps
deps:
sh mkmf.sh $(STANDARD)
rm -rf .dep
tags:
ctags $$(find src -name \*.c)
headers: .headers.mk
@$(MAKE) -f .headers.mk $@
clean:
rm -rf $(OBJDIR) *.a
extra-clean: clean
rm -rf .dep .headers.mk .deps.mk include
|