04bfcd0dfe6c5399ff13daeb51dcd1f457be9f72
[reactos.git] / rosapps / notevil / makefile
1 # $Id: makefile,v 1.4 2001/07/28 08:02:05 ea Exp $
2 #
3 # ReactOS makefile for notevil
4 # Compiler: egcs 1.1.2
5 #
6 TARGET=notevil
7
8 all: $(TARGET).exe
9
10 OBJECTS = $(TARGET).o $(TARGET).coff
11
12 CLEAN_FILES = *.o $(TARGET).exe $(TARGET).sym $(TARGET).coff
13
14 clean: $(CLEAN_FILES:%=%_clean)
15
16 $(CLEAN_FILES:%=%_clean): %_clean:
17 - $(RM) $*
18
19 .phony: clean $(CLEAN_FILES:%=%_clean)
20
21 $(TARGET).exe: $(OBJECTS)
22 $(CC) $(OBJECTS) \
23 -o $(TARGET).exe \
24 -lkernel32 \
25 -luser32 \
26 -lmsvcrt
27 $(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
28
29 $(TARGET).coff: $(TARGET).rc
30 $(RC) $(RFLAGS) $(TARGET).rc $(TARGET).coff
31
32 $(TARGET).o: $(TARGET).c resource.h
33
34 floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
35
36 $(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
37 ifeq ($(DOSCLI),yes)
38 $(CP) $* $(FLOPPY_DIR)\apps\$*
39 else
40 $(CP) $* $(FLOPPY_DIR)/apps/$*
41 endif
42
43
44 dist: $(TARGET:%=../$(DIST_DIR)/apps/%)
45
46 $(TARGET:%=../$(DIST_DIR)/apps/%): ../$(DIST_DIR)/apps/%: %
47 ifeq ($(DOSCLI),yes)
48 $(CP) $* ..\$(DIST_DIR)\apps\$*
49 else
50 $(CP) $* ../$(DIST_DIR)/apps/$*
51 endif
52
53 include ../rules.mak
54
55 # EOF