Revision 1385 trunk/contrib/gdbprintlib/GNUmakefile

GNUmakefile (revision 1385)
1
all: $(addprefix $(PREFIX_OBJ), gdbprintlib.obj)
1
$(PREFIX_OBJ)gdbprintlib.obj: gdbprintlib.cpp
2
ifeq ($(SHELL),sh.exe)
3
	..\..\admb.cmd -c gdbprintlib.cpp
4
	copy gdbprintlib.obj $(PREFIX_OBJ)gdbprintlib.obj
5
else
6
	../../admb -c gdbprintlib.cpp
7
	cp gdbprintlib.o $(PREFIX_OBJ)gdbprintlib.obj
8
endif
2 9

  
3 10
clean:
4

  
5
$(PREFIX_OBJ)%.obj: %.cpp
6
ifeq ($(CXX),cl)
7
	$(CXX) /c $(CXXFLAGS) /Fo$@ $<
11
ifeq ($(SHELL),sh.exe)
12
	del gdbprintlib.obj
13
	del gdbprintlib.o
8 14
else
9
	$(CXX) -c $(CXXFLAGS) -o$@ $<
15
	@rm -vf gdbprintlib.obj
16
	@rm -vf gdbprintlib.o
10 17
endif

Also available in: Unified diff