Subversion Repositories RepoView

Rev

Rev 1 | Rev 24 | 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 3 2024-08-20 21:05:24Z nishi $
2
 
3
PWD = `pwd`
4
PLATFORM = generic
5
 
6
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) EXTOBJS="`./objs`" EXTLIBS="`./libs`"
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)
27
	rm -f objs libs check
3 nishi 28
 
29
format:
30
	clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`