Bram Moolenaar | 04c86d2 | 2018-10-17 22:45:54 +0200 | [diff] [blame] | 1 | # A very (if not the most) simplistic Makefile for MS-Windows and OS/2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | |
3 | CC=gcc | ||||
4 | CFLAGS=-O2 -fno-strength-reduce | ||||
5 | |||||
Bram Moolenaar | 833e5da | 2018-10-28 15:43:58 +0100 | [diff] [blame] | 6 | ifneq (sh.exe, $(SHELL)) |
Bram Moolenaar | 08fc484 | 2020-07-10 20:40:23 +0200 | [diff] [blame] | 7 | DEL = rm -f |
Bram Moolenaar | 833e5da | 2018-10-28 15:43:58 +0100 | [diff] [blame] | 8 | else |
9 | DEL = del | ||||
10 | endif | ||||
11 | |||||
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12 | tee.exe: tee.o |
13 | $(CC) $(CFLAGS) -s -o $@ $< | ||||
14 | |||||
15 | tee.o: tee.c | ||||
16 | $(CC) $(CFLAGS) -c $< | ||||
17 | |||||
18 | clean: | ||||
Bram Moolenaar | 833e5da | 2018-10-28 15:43:58 +0100 | [diff] [blame] | 19 | - $(DEL) tee.o |
20 | - $(DEL) tee.exe | ||||
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 21 |