CFLAGS=-Wall -Werror -O2 -g CXXFLAGS=$(CFLAGS) TARGET_ARCH=-m486 # strip symbols, if no debug-info requested ifneq ($(findstring -g,$(CFLAGS)),-g) LDFLAGS+=-s endif .PHONY: all clean cleanall all:test term test: test.o serio.o term: term.o serio.o test.o: test.c serio.h term.o: term.c serio.h serio.o: serio.s clean: -del test -del term -del *.exe -del term.o -del test.o cleanall: clean -del serio.o