External TEE command.
[reactos.git] / rosapps / cmdutils / makefile
1 #
2 # ReactOS cmdutils makefile
3 #
4
5 TARGET=tee.exe
6
7 all: $(TARGET)
8
9 OBJECTS = tee.o
10
11 CLEAN_FILES = *.o *.exe *.sym *.coff
12
13
14 tee.exe: tee.o
15 $(CC) tee.o -lkernel32 -lcrtdll -o tee.exe
16 $(NM) --numeric-sort tee.exe > tee.sym
17
18
19 clean: $(CLEAN_FILES:%=%_clean)
20
21 $(CLEAN_FILES:%=%_clean): %_clean:
22 - $(RM) $*
23
24 .phony: clean $(CLEAN_FILES:%=%_clean)
25
26
27 floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
28
29 $(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
30 ifeq ($(DOSCLI),yes)
31 $(CP) $* $(FLOPPY_DIR)\apps\$*
32 else
33 $(CP) $* $(FLOPPY_DIR)/apps/$*
34 endif
35
36
37 dist: $(TARGET:%=../$(DIST_DIR)/%)
38
39 $(TARGET:%=../$(DIST_DIR)/%): ../$(DIST_DIR)/%: %
40 ifeq ($(DOSCLI),yes)
41 $(CP) $* ..\$(DIST_DIR)\$*
42 else
43 $(CP) $* ../$(DIST_DIR)/$*
44 endif
45
46 include ../rules.mak