2001-07-28 08:02:05 +00:00
|
|
|
# $Id: makefile,v 1.4 2001/07/28 08:02:05 ea Exp $
|
1999-05-15 07:23:34 +00:00
|
|
|
#
|
|
|
|
# ReactOS makefile for notevil
|
|
|
|
# Compiler: egcs 1.1.2
|
|
|
|
#
|
|
|
|
TARGET=notevil
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
dist: $(TARGET:%=../$(DIST_DIR)/apps/%)
|
|
|
|
|
|
|
|
$(TARGET:%=../$(DIST_DIR)/apps/%): ../$(DIST_DIR)/apps/%: %
|
|
|
|
ifeq ($(DOSCLI),yes)
|
|
|
|
$(CP) $* ..\$(DIST_DIR)\apps\$*
|
|
|
|
else
|
|
|
|
$(CP) $* ../$(DIST_DIR)/apps/$*
|
|
|
|
endif
|
|
|
|
|
1999-05-15 07:23:34 +00:00
|
|
|
include ../rules.mak
|
|
|
|
|
|
|
|
# EOF
|