Subversion Repositories RepoView

Rev

Rev 3 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 nishi 1
# $Id: Makefile 24 2024-08-21 17:10:49Z nishi $
2
 
3
PWD = `pwd`
4
PLATFORM = generic
5
 
24 nishi 6
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) EXTOBJS="`./objs`" EXTLIBS="`./libs`" EXTCFLAGS=""
1 nishi 7
 
3 nishi 8
.PHONY: all clean format ./CGI
1 nishi 9
 
10
all: ./CGI
11
 
12
./CGI:: check objs libs
13
	$(MAKE) -C $@ $(FLAGS)
14
 
15
objs:: objs.c check
16
	cc -o $@ objs.c
17
 
18
libs:: libs.c check
19
	cc -o $@ libs.c
20
 
21
check:: check.c config.h
22
	cc -o $@ check.c
23
	./check
24
 
25
clean:
26
	$(MAKE) -C ./CGI clean $(FLAGS)
24 nishi 27
	rm -f objs libs check cflags
3 nishi 28
 
29
format:
30
	clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`