811f351ae6797197fcac585fdc8ea0e351f0e21a
[reactos.git] / reactos / subsys / csrss / makefile
1 # $Id: makefile,v 1.7 2000/08/05 18:01:57 dwelch Exp $
2 #
3 # CSRSS: Client/server runtime subsystem
4 #
5 # ReactOS Operating System
6 #
7 TARGET=csrss
8
9 BASE_CFLAGS = -I../../include -I.
10
11 OBJECTS_API = api/process.o api/wapi.o api/conio.o api/handle.o
12
13 OBJECTS_SBAPI =
14
15 OBJECTS_MISC = $(TARGET).o init.o print.o $(TARGET).coff
16
17 OBJECTS = $(OBJECTS_API) $(OBJECTS_SBAPI) $(OBJECTS_MISC)
18
19 LIBS = ../../lib/ntdll/ntdll.a
20
21 all: $(TARGET).exe
22
23 .phony: all
24
25 clean:
26 - $(RM) api/*.o
27 - $(RM) sbapi/*.o
28 - $(RM) *.o
29 - $(RM) $(TARGET).exe
30 - $(RM) $(TARGET).sym
31 - $(RM) $(TARGET).coff
32
33 .phony: clean
34
35 $(TARGET).coff: $(TARGET).rc
36 $(RC) $(TARGET).rc $(TARGET).coff
37
38 $(TARGET).exe: $(OBJECTS) $(LIBS)
39 $(LD) \
40 $(OBJECTS) \
41 $(LIBS) \
42 -o $(TARGET).exe \
43 --subsystem native
44 $(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
45
46
47 floppy: $(FLOPPY_DIR)/subsys/$(TARGET).exe
48
49 $(FLOPPY_DIR)/subsys/$(TARGET).exe: $(TARGET).exe
50 ifeq ($(DOSCLI),yes)
51 $(CP) $(TARGET).exe $(FLOPPY_DIR)\subsys\$(TARGET).exe
52 else
53 $(CP) $(TARGET).exe $(FLOPPY_DIR)/subsys/$(TARGET).exe
54 endif
55
56
57 dist: $(DIST_DIR)/subsys/$(TARGET).exe
58
59 $(DIST_DIR)/subsys/$(TARGET).exe: $(TARGET).exe
60 ifeq ($(DOSCLI),yes)
61 $(CP) $(TARGET).exe ..\..\$(DIST_DIR)\subsys\$(TARGET).exe
62 else
63 $(CP) $(TARGET).exe ../../$(DIST_DIR)/subsys/$(TARGET).exe
64 endif
65
66 WITH_DEBUGGING = yes
67 include ../../rules.mak
68
69 # EOF