C compiler with embedded metalanguage.
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
CFLAGS = -I/opt/local/include -std=gnu99 -Wall -Wno-unused-label -Wno-unused-function -g
|
|
LDLIBS = -L/opt/local/lib -lgc -lm
|
|
|
|
MAIN = ccmeta
|
|
|
|
all : $(MAIN)
|
|
|
|
$(MAIN) : $(MAIN).c object.c buffer.h
|
|
$(CC) $(CFLAGS) -o $@ $@.c $(LDLIBS)
|
|
|
|
.SUFFIXES: .leg .c
|
|
|
|
.leg.c :
|
|
leg $< > $@.new
|
|
mv $@.new $@
|
|
|
|
tidy : .FORCE
|
|
rm -f *~
|
|
|
|
clean : .FORCE
|
|
rm -f $(MAIN) $(MAIN).c
|
|
|
|
spotless : clean tidy
|
|
|
|
.FORCE :
|