Patch by Jonathon Wilson:
[reactos.git] / reactos / apps / tests / tests / guitest / Makefile
1 #
2 #
3 #
4 PATH_TO_TOP = ../../../..
5
6 PROGS = guitest
7
8 OBJECTS = guitest.o
9
10 LIBS = $(PATH_TO_TOP)/dk/w32/lib/gdi32.a
11 CFLAGS = -Wall -Werror
12
13 all: $(PROGS:%=%.exe)
14
15 .phony: all
16
17 clean:
18 - $(RM) *.o *.exe *.sym
19
20 .phony: clean
21
22 install: $(PROGS:%=$(FLOPPY_DIR)/apps/tests/%.exe)
23
24 $(PROGS:%=$(FLOPPY_DIR)/apps/tests/%.exe): $(FLOPPY_DIR)/apps/tests/%.exe: %.exe
25 $(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
26
27 dist: $(PROGS:%=../../$(DIST_DIR)/apps/tests/%.exe)
28
29 $(PROGS:%=../../$(DIST_DIR)/apps/tests/%.exe): ../../$(DIST_DIR)/apps/tests/%.exe: %.exe
30 $(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
31
32 guitest.exe: $(OBJECTS)
33 $(CC) $(CFLAGS) -Wl,--subsystem,windows $(OBJECTS) $(LIBS) -o guitest.exe
34 $(NM) --numeric-sort guitest.exe > guitest.sym
35
36 include $(PATH_TO_TOP)/rules.mak