mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
![David Welch](/assets/img/avatar_default.png)
Added PATH_TO_ROOT variable to most makefiles Added system independant install utility Implemented prototype system for changing individual regions without a memory area Added some interesting articles from usenet svn path=/trunk/; revision=1306
42 lines
721 B
Makefile
42 lines
721 B
Makefile
#
|
|
#
|
|
#
|
|
PATH_TO_TOP = ../..
|
|
|
|
OBJECTS = pteb.o
|
|
PROGS = pteb.exe
|
|
LIBS =
|
|
CLEAN_FILES = pteb.o pteb.exe
|
|
|
|
all: pteb.exe
|
|
|
|
clean: $(CLEAN_FILES:%=%_clean)
|
|
|
|
$(CLEAN_FILES:%=%_clean): %_clean:
|
|
- $(RM) $*
|
|
|
|
.phony: clean $(CLEAN_FILES:%=%_clean)
|
|
|
|
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%)
|
|
|
|
$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
|
|
ifeq ($(DOSCLI),yes)
|
|
$(CP) $* $(FLOPPY_DIR)\apps\$*
|
|
else
|
|
$(CP) $* $(FLOPPY_DIR)/apps/$*
|
|
endif
|
|
|
|
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%)
|
|
|
|
$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: %
|
|
ifeq ($(DOSCLI),yes)
|
|
$(CP) $* ..\..\$(DIST_DIR)\apps\$*
|
|
else
|
|
$(CP) $* ../../$(DIST_DIR)/apps/$*
|
|
endif
|
|
|
|
pteb.exe: $(OBJECTS)
|
|
$(CC) $(OBJECTS) -o pteb.exe
|
|
|
|
include ../../rules.mak
|