Subversion Repositories RepoView

Rev

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

# $Id: Makefile 24 2024-08-21 17:10:49Z nishi $

PWD = `pwd`
PLATFORM = generic

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

.PHONY: all clean format ./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"`