mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00:00
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
44 lines
815 B
Makefile
44 lines
815 B
Makefile
#
|
|
#
|
|
#
|
|
PATH_TO_TOP = ../..
|
|
|
|
PROGS = thread
|
|
|
|
all: $(PROGS:%=%.exe)
|
|
|
|
.phony: all
|
|
|
|
clean: $(PROGS:%=%_clean)
|
|
|
|
$(PROGS:%=%_clean): %_clean:
|
|
- $(RM) $*.o
|
|
- $(RM) $*.exe
|
|
- $(RM) $*.sym
|
|
|
|
.phony: clean
|
|
|
|
install: # $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
|
|
|
|
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
|
|
ifeq ($(DOSCLI),yes)
|
|
$(CP) $*.exe $(FLOPPY_DIR)\apps\$*.exe
|
|
else
|
|
$(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
|
|
endif
|
|
|
|
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%.exe)
|
|
|
|
$(PROGS:%=../../$(DIST_DIR)/apps/%.exe): ../../$(DIST_DIR)/apps/%.exe: %.exe
|
|
ifeq ($(DOSCLI),yes)
|
|
$(CP) $*.exe ..\..\$(DIST_DIR)\apps\$*.exe
|
|
else
|
|
$(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
|
|
endif
|
|
|
|
thread.exe: thread.c
|
|
$(CC) $(CFLAGS) thread.c -lkernel32 -o thread.exe
|
|
$(NM) --numeric-sort thread.exe > thread.sym
|
|
|
|
include ../../rules.mak
|