K.Takata | 5bc1345 | 2022-09-09 10:52:47 +0100 | [diff] [blame] | 1 | # A very (if not the most) simplistic Makefile for MS-Windows and OS/2 |
2 | |||||
3 | CC=gcc | ||||
4 | CFLAGS=-O2 -fno-strength-reduce | ||||
5 | |||||
6 | ifneq (sh.exe, $(SHELL)) | ||||
7 | DEL = rm -f | ||||
8 | else | ||||
9 | DEL = del | ||||
10 | endif | ||||
11 | |||||
12 | tee.exe: tee.o | ||||
13 | $(CC) $(CFLAGS) -s -o $@ $< | ||||
14 | |||||
15 | tee.o: tee.c | ||||
16 | $(CC) $(CFLAGS) -c $< | ||||
17 | |||||
18 | clean: | ||||
19 | - $(DEL) tee.o | ||||
20 | - $(DEL) tee.exe | ||||
21 |