2001-10-16 21:02:02 +00:00
|
|
|
# $Id: makefile,v 1.5 2001/10/16 21:02:02 ea Exp $
|
1999-05-15 07:23:34 +00:00
|
|
|
#
|
|
|
|
# ReactOS makefile for notevil
|
|
|
|
# Compiler: egcs 1.1.2
|
|
|
|
#
|
2001-10-16 21:02:02 +00:00
|
|
|
PATH_TO_TOP = ..
|
|
|
|
PATH_TO_REACTOS = $(PATH_TO_TOP)/../reactos
|
|
|
|
|
1999-05-15 07:23:34 +00:00
|
|
|
TARGET=notevil
|
|
|
|
|
2001-10-16 21:02:02 +00:00
|
|
|
BASE_CFLAGS = -I$(PATH_TO_REACTOS)/include
|
|
|
|
|
1999-05-15 07:23:34 +00:00
|
|
|
all: $(TARGET).exe
|
|
|
|
|
|
|
|
OBJECTS = $(TARGET).o $(TARGET).coff
|
|
|
|
|
|
|
|
CLEAN_FILES = *.o $(TARGET).exe $(TARGET).sym $(TARGET).coff
|
|
|
|
|
|
|
|
clean: $(CLEAN_FILES:%=%_clean)
|
|
|
|
|
|
|
|
$(CLEAN_FILES:%=%_clean): %_clean:
|
|
|
|
- $(RM) $*
|
|
|
|
|
|
|
|
.phony: clean $(CLEAN_FILES:%=%_clean)
|
|
|
|
|
|
|
|
$(TARGET).exe: $(OBJECTS)
|
|
|
|
$(CC) $(OBJECTS) \
|
|
|
|
-o $(TARGET).exe \
|
|
|
|
-lkernel32 \
|
|
|
|
-luser32 \
|
2001-07-28 08:02:05 +00:00
|
|
|
-lmsvcrt
|
1999-05-15 07:23:34 +00:00
|
|
|
$(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
|
1999-10-03 22:10:15 +00:00
|
|
|
|
1999-05-15 07:23:34 +00:00
|
|
|
$(TARGET).coff: $(TARGET).rc
|
|
|
|
$(RC) $(RFLAGS) $(TARGET).rc $(TARGET).coff
|
1999-10-03 22:10:15 +00:00
|
|
|
|
2000-09-12 23:21:20 +00:00
|
|
|
$(TARGET).o: $(TARGET).c resource.h
|
1999-10-03 22:10:15 +00:00
|
|
|
|
|
|
|
floppy: $(TARGET:%=$(FLOPPY_DIR)/apps/%)
|
|
|
|
|
|
|
|
$(TARGET:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: %
|
|
|
|
ifeq ($(DOSCLI),yes)
|
|
|
|
$(CP) $* $(FLOPPY_DIR)\apps\$*
|
|
|
|
else
|
|
|
|
$(CP) $* $(FLOPPY_DIR)/apps/$*
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2001-10-16 21:02:02 +00:00
|
|
|
dist: $(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%)
|
1999-10-03 22:10:15 +00:00
|
|
|
|
2001-10-16 21:02:02 +00:00
|
|
|
$(TARGET:%=$(PATH_TO_TOP)/$(DIST_DIR)/apps/%): $(PATH_TO_TOP)/$(DIST_DIR)/apps/%: %
|
1999-10-03 22:10:15 +00:00
|
|
|
ifeq ($(DOSCLI),yes)
|
|
|
|
$(CP) $* ..\$(DIST_DIR)\apps\$*
|
|
|
|
else
|
2001-10-16 21:02:02 +00:00
|
|
|
$(CP) $* $(PATH_TO_TOP)/$(DIST_DIR)/apps/$*
|
1999-10-03 22:10:15 +00:00
|
|
|
endif
|
|
|
|
|
2001-10-16 21:02:02 +00:00
|
|
|
include $(PATH_TO_TOP)/rules.mak
|
1999-05-15 07:23:34 +00:00
|
|
|
|
|
|
|
# EOF
|