#
# Makefile for DJGPP
#

SOURCE = ftpd.c cgi.c ftp.c http.c httpd.c ntime.c smtpcli.c \
         smtpd.c snmpd.c snmptrap.c syslog.c telnetd.c \
       # tftp.c tftpd.c

CC     = gcc.exe
CFLAGS = -O2 -g -I../inc -Wall -Winline -falign-loops=2           \
         -falign-jumps=2 -falign-functions=2 -fno-strength-reduce \
         -ffast-math #-fomit-frame-pointer

OBJS   = $(SOURCE:.c=.o)
TARGET = ../lib/librt32.a

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<

all:   $(TARGET)

$(TARGET): $(OBJS)
	ar rs $@ $?

clean::
	rm -f $(OBJS)
	@echo Cleaning done

