Corrected the handle generation algorithm in the kernel and csrss
[reactos.git] / reactos / apps / utils / objdir / makefile
1 #
2 #
3 #
4 OBJECTS= objdir.o
5
6
7 PROGS= objdir.exe
8
9 BASE_CFLAGS = -I../../include
10 LIBS = ../../lib/ntdll/ntdll.a
11
12 all: $(PROGS)
13
14 .phony: all
15
16 clean:
17 - $(RM) objdir.o
18 - $(RM) objdir.exe
19 - $(RM) objdir.sym
20
21 .phony: clean
22
23 floppy: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
24
25 $(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
26 ifeq ($(DOSCLI),yes)
27 $(CP) $* $(FLOPPY_DIR)\apps\$*
28 else
29 $(CP) $* $(FLOPPY_DIR)/apps/$*
30 endif
31
32 dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
33
34 $(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
35 ifeq ($(DOSCLI),yes)
36 $(CP) $* ..\..\$(DIST_DIR)\apps\$*
37 else
38 $(CP) $* ../../$(DIST_DIR)/apps/$*
39 endif
40
41 objdir.exe: $(OBJECTS) $(LIBS)
42 $(LD) $(OBJECTS) $(LIBS) -o objdir.exe
43 $(NM) --numeric-sort objdir.exe > objdir.sym
44
45
46 include ../../rules.mak