3761209d826dff986ec64dce900943f3776ff67e
[reactos.git] / reactos / tools / cabman / makefile
1 #
2 # ReactOS Cabinet Manager
3 #
4 PATH_TO_TOP = ../..
5
6 TARGET=cabman$(EXE_POSTFIX)
7
8 all: $(TARGET)
9
10 OBJECTS = cabinet.o mszip.o raw.o main.o dfp.o
11
12 CLEAN_FILES = *.o cabman$(EXE_POSTFIX)
13
14 HOST_CFLAGS = -g -I. -I$(PATH_TO_TOP)/lib/zlib -I$(W32API_PATH)/include -Werror -Wall
15
16 HOST_LFLAGS = -g $(PATH_TO_TOP)/lib/zlib/zlib.host.a
17
18 cabinet.o: cabinet.cxx
19 $(HOST_CXX) $(HOST_CFLAGS) -c cabinet.cxx -o cabinet.o
20
21 mszip.o: mszip.cxx
22 $(HOST_CXX) $(HOST_CFLAGS) -c mszip.cxx -o mszip.o
23
24 raw.o: raw.cxx
25 $(HOST_CXX) $(HOST_CFLAGS) -c raw.cxx -o raw.o
26
27 main.o: main.cxx
28 $(HOST_CXX) $(HOST_CFLAGS) -c main.cxx -o main.o
29
30 dfp.o: dfp.cxx
31 $(HOST_CXX) $(HOST_CFLAGS) -c dfp.cxx -o dfp.o
32
33 cabman$(EXE_POSTFIX): $(OBJECTS)
34 $(HOST_CXX) $(OBJECTS) $(HOST_LFLAGS) -o cabman$(EXE_POSTFIX)
35
36 ifeq ($(HOST),mingw32-linux)
37 clean:
38 rm -f *.o
39 rm -f cabman$(EXE_POSTFIX)
40 endif
41 ifeq ($(HOST),mingw32-windows)
42 clean:
43 -del *.o
44 -del cabman$(EXE_POSTFIX)
45 endif
46
47 .phony: clean
48
49 include $(PATH_TO_TOP)/rules.mak