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