From: <mc...@us...> - 2002-08-30 12:14:34
|
Update of /cvsroot/husky/hpucode/make In directory usw-pr-cvs1:/tmp/cvs-serv5609/hpucode/make Modified Files: makefile.mgw Log Message: minGW makefiles corrected Index: makefile.mgw =================================================================== RCS file: /cvsroot/husky/hpucode/make/makefile.mgw,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- makefile.mgw 24 Aug 2002 12:56:35 -0000 1.2 +++ makefile.mgw 30 Aug 2002 12:14:28 -0000 1.3 @@ -1,26 +1,31 @@ -CC = gcc -CFLAGS=-DNT -D__NT__ -DWINNT -D__CYG__ -I../h -I../.. -Wall -pedantic -c -Wno-char-subscripts -COPT= -O2 -LFLAGS=-L../../smapi/ -L../../fidoconf +CC=gcc +RM=del -OBJS = uuecode.o uuefile.o scanmsg.o dupe.o -SRC_DIR = ../src/ +CDEFS=-D__NT__ -D__MINGW__ -c -I../h -I../.. +CFLAGS=-Wall +COPT=-O3 -all: hpucode.exe +LFLAGS=-L../../smapi -L../../fidoconf +LIBS=-lfidoconfigmgw -lsmapimgw -luser32 +SRC_DIR=../src/ + +default: all + +TARGET=hpucode.exe + +OBJS=uuecode.o uuefile.o scanmsg.o dupe.o + +all: $(TARGET) %.o: $(SRC_DIR)%.c - $(CC) $(CFLAGS) $< + $(CC) $(CFLAGS) $(CDEFS) $(COPT) $(SRC_DIR)$*.c -hpucode.exe: $(OBJS) - $(CC) $(LFLAGS) -o hpucode.exe $(OBJS) -lfidoconfigmgw -lsmapimgw -luser32 +$(TARGET): $(OBJS) + $(CC) $(LFLAGS) -o $(TARGET) $(OBJS) $(LIBS) clean: - -rm -f *.o - -rm *~ - -rm + -$(RM) *.o -distclean: clean - -rm hpucode.exe - -rm *.1.gz - -rm *.log +distclean: + -$(RM) $(TARGET) |