mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-08-12 16:17:30 +02:00
Added -D__EXTENSIONS__
Compile everything but the parser with -Wall -W
This commit is contained in:
@ -1,19 +1,21 @@
|
|||||||
# Makefile for boxes
|
# Makefile for boxes on Solaris 2.6/sparc
|
||||||
|
|
||||||
LEX = flex
|
LEX = flex
|
||||||
YACC = yacc
|
YACC = yacc
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -ansi -D_POSIX_C_SOURCE # -O
|
CFLAGS = -ansi -D_POSIX_C_SOURCE -D__EXTENSIONS__ # -O
|
||||||
|
|
||||||
|
|
||||||
boxes: y.tab.o lex.yy.o boxes.o
|
boxes: y.tab.o lex.yy.o boxes.o
|
||||||
$(CC) $(CFLAGS) -Wall -W -o boxes y.tab.o lex.yy.o boxes.o -ll
|
$(CC) $(LDFLAGS) -o boxes y.tab.o lex.yy.o boxes.o -ll
|
||||||
|
|
||||||
lex.yy.o: lex.yy.c y.tab.h
|
lex.yy.o: lex.yy.c y.tab.h
|
||||||
|
$(CC) $(CFLAGS) -DYY_NO_UNPUT -Wall -W -c lex.yy.c
|
||||||
|
|
||||||
y.tab.o: y.tab.c y.tab.h
|
y.tab.o: y.tab.c y.tab.h
|
||||||
|
|
||||||
boxes.o: boxes.c boxes.h
|
boxes.o: boxes.c boxes.h
|
||||||
|
$(CC) $(CFLAGS) -Wall -W -c boxes.c
|
||||||
|
|
||||||
y.tab.c y.tab.h: parser.y boxes.h
|
y.tab.c y.tab.h: parser.y boxes.h
|
||||||
$(YACC) -d parser.y
|
$(YACC) -d parser.y
|
||||||
|
Reference in New Issue
Block a user