#
# Makefile
#
#
TARGET = test_gcc_12.2.0-O1
XFLAGS = 
CFLAGS = -O1 -Wall -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation
LIBS = 

$(TARGET) : test_gcc_12.2.0-O1_1.o test_gcc_12.2.0-O1_2.o test_gcc_12.2.0-O1_3.o
	$(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) test_gcc_12.2.0-O1_1.o test_gcc_12.2.0-O1_2.o test_gcc_12.2.0-O1_3.o $(LIBS)

test_gcc_12.2.0-O1_1.o	: test_gcc_12.2.0-O1_1.c 
	$(CC) -c $(XFLAGS) $(CFLAGS) ./test_gcc_12.2.0-O1_1.c

test_gcc_12.2.0-O1_2.o	: test_gcc_12.2.0-O1_2.c 
	$(CC) -c $(XFLAGS) $(CFLAGS) ./test_gcc_12.2.0-O1_2.c

test_gcc_12.2.0-O1_3.o	: test_gcc_12.2.0-O1_3.c 
	$(CC) -c $(XFLAGS) $(CFLAGS) ./test_gcc_12.2.0-O1_3.c

clean:
	rm -f *.o $(TARGET) log core

install:
	make clean
	make CFLAGS=-O
	install -s -o bin -g bin $(TARGET) /usr/local/bin
