Subversion Repositories RepoView

Rev

Rev 24 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# $Id: Makefile 72 2024-08-24 08:54:20Z nishi $

PWD = `pwd`
PLATFORM = generic

FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) EXTOBJS="`./objs`" EXTLIBS="`./libs`" EXTCFLAGS=""

.PHONY: all clean format install ./CGI

all: ./CGI

./CGI:: check objs libs
        $(MAKE) -C $@ $(FLAGS)

objs:: objs.c check
        cc -o $@ objs.c

libs:: libs.c check
        cc -o $@ libs.c

check:: check.c config.h
        cc -o $@ check.c
        ./check

clean:
        $(MAKE) -C ./CGI clean $(FLAGS)
        rm -f objs libs check cflags

format:
        clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`