branch update for HEAD-2003050101
[reactos.git] / apps / tests / wm_paint / makefile
index c606328..9fccf77 100644 (file)
@@ -1,66 +1,20 @@
-# Makefile - Proj_Listing1_1.dsp
 
-ifndef CFG
-CFG=Proj_Listing1_1 - Win32 Debug
-endif
-CC=gcc
-CFLAGS=
-CXX=g++
-CXXFLAGS=$(CFLAGS)
-RC=windres -O COFF
-ifeq "$(CFG)"  "Proj_Listing1_1 - Win32 Release"
-CFLAGS+=-fexceptions -O2 -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -W
-LD=$(CXX) $(CXXFLAGS)
-LDFLAGS=
-LDFLAGS+=-Wl,--subsystem,windows
-LIBS+=-lkernel32 -luser32 -lgdi32
-else
-ifeq "$(CFG)"  "Proj_Listing1_1 - Win32 Debug"
-CFLAGS+=-fexceptions -g -O0 -DWIN32 -D_DEBUG -D_WINDOWS -D_MBCS -W
-LD=$(CXX) $(CXXFLAGS)
-LDFLAGS=
-LDFLAGS+=-Wl,--subsystem,windows
-LIBS+=-lkernel32 -luser32 -lgdi32
-endif
-endif
+PATH_TO_TOP = ../../..
 
-ifndef TARGET
-TARGET=WM_PAINT.exe
-endif
+TARGET_NORC = yes
 
-.PHONY: all
-all: $(TARGET)
+TARGET_TYPE = program
 
-%.o: %.c
-       $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
+TARGET_APPTYPE = windows
 
-%.o: %.cpp
-       $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $<
+TARGET_NAME = wm_paint
 
-%.res: %.rc
-       $(RC) $(CPPFLAGS) -o $@ -i $<
+TARGET_SDKLIBS = kernel32.a gdi32.a
 
-SOURCE_FILES= \
-       Listing1_1.cpp
+TARGET_OBJECTS = $(TARGET_NAME).o
 
-HEADER_FILES=
+include $(PATH_TO_TOP)/rules.mak
 
-RESOURCE_FILES=
-
-SRCS=$(SOURCE_FILES) $(HEADER_FILES) $(RESOURCE_FILES) 
-
-OBJS=$(patsubst %.rc,%.res,$(patsubst %.cpp,%.o,$(patsubst %.c,%.o,$(filter %.c %.cpp %.rc,$(SRCS)))))
-
-$(TARGET): $(OBJS)
-       $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-
-.PHONY: clean
-clean:
-       -del $(OBJS) $(TARGET)
-
-.PHONY: depends
-depends:
-       -$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM $(filter %.c %.cpp,$(SRCS)) > Proj_Listing1_1.dep
-
--include Proj_Listing1_1.dep
+include $(TOOLS_PATH)/helper.mk
 
+# EOF