reactos/rosapps/tests/lpc/makefile

53 lines
984 B
Makefile
Raw Normal View History

#
#
#
PATH_TO_TOP = ../../../reactos
include $(PATH_TO_TOP)/config
include $(PATH_TO_TOP)/rules.mak
SRV_OBJECTS= lpcsrv.o
CLT_OBJECTS= lpcclt.o
PROGS= lpcsrv.exe lpcclt.exe
CFLAGS = $(STD_CFLAGS)
LIBS = $(SDK_PATH_LIB)/libkernel32.a \
$(SDK_PATH_LIB)/libntdll.a
all: $(PROGS)
.phony: all
implib:
clean:
- $(RM) lpcsrv.o lpcsrv.exe lpcsrv.sym lpcclt.o lpcclt.exe lpcclt.sym
.phony: implib clean
ifneq ($(BOOTCD_INSTALL),)
install: $(PROGS:%=$(INSTALL_DIR)/%)
$(PROGS:%=$(INSTALL_DIR)/%): $(INSTALL_DIR)/%: %
$(CP) $* $(INSTALL_DIR)/$*
else # BOOTCD_INSTALL
install: $(PROGS:%=$(INSTALL_DIR)/bin/%)
$(PROGS:%=$(INSTALL_DIR)/bin/%): $(INSTALL_DIR)/bin/%: %
$(CP) $* $(INSTALL_DIR)/bin/$*
endif # BOOTCD_INSTALL
lpcsrv.exe: $(SRV_OBJECTS) $(LIBS)
$(CC) $(SRV_OBJECTS) $(LIBS) -o lpcsrv.exe
$(NM) --numeric-sort lpcsrv.exe > lpcsrv.sym
lpcclt.exe: $(CLT_OBJECTS) $(LIBS)
$(CC) $(CLT_OBJECTS) $(LIBS) -o lpcclt.exe
$(NM) --numeric-sort lpcclt.exe > lpcclt.sym