242bb844f762f2478dc1972949cae5261f1f6cc7
[reactos.git] / rosapps / notevil / makefile
1 # $Id: makefile,v 1.2 1999/10/03 22:10:15 ekohl 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 -lcrtdll
27 $(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
28
29 $(TARGET).coff: $(TARGET).rc
30 $(RC) $(RFLAGS) $(TARGET).rc $(TARGET).coff
31
32
33 floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
34
35 $(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
36 ifeq ($(DOSCLI),yes)
37 $(CP) $* $(FLOPPY_DIR)\apps\$*
38 else
39 $(CP) $* $(FLOPPY_DIR)/apps/$*
40 endif
41
42
43 dist: $(TARGET:%=../$(DIST_DIR)/apps/%)
44
45 $(TARGET:%=../$(DIST_DIR)/apps/%): ../$(DIST_DIR)/apps/%: %
46 ifeq ($(DOSCLI),yes)
47 $(CP) $* ..\$(DIST_DIR)\apps\$*
48 else
49 $(CP) $* ../$(DIST_DIR)/apps/$*
50 endif
51
52 include ../rules.mak
53
54 # EOF