Renamed pseudo target 'floppy' to 'install'
[reactos.git] / reactos / apps / utils / shell / makefile
1 #
2 #
3 #
4 OBJECTS= ../common/crt0.o shell.o
5 PROGS= shell.exe
6 LIBS= ../../lib/kernel32/kernel32.a ../../lib/ntdll/ntdll.a
7 CLEAN_FILES= shell.o shell.exe shell.sym
8
9 BASE_CFLAGS = -I../../include
10
11 all: shell.exe
12
13 clean: $(CLEAN_FILES:%=%_clean)
14
15 $(CLEAN_FILES:%=%_clean): %_clean:
16 - $(RM) $*
17
18 .phony: clean $(CLEAN_FILES:%=%_clean)
19
20 install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
21
22 $(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
23 ifeq ($(DOSCLI),yes)
24 $(CP) $* $(FLOPPY_DIR)\apps\$*
25 else
26 $(CP) $* $(FLOPPY_DIR)/apps/$*
27 endif
28
29 dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
30
31 $(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
32 ifeq ($(DOSCLI),yes)
33 $(CP) $* ..\..\$(DIST_DIR)\apps\$*
34 else
35 $(CP) $* ../../$(DIST_DIR)/apps/$*
36 endif
37
38 shell.exe: $(OBJECTS) $(LIBS)
39 $(CC) -specs=../../specs $(OBJECTS) $(LIBS) -lgcc -o shell.exe
40 $(NM) --numeric-sort shell.exe > shell.sym
41
42 include ../../rules.mak