Get rid of Debian-specific Makefile -- gcc < 3.0 is obsolete

This commit is contained in:
mpc
2004-06-22 22:49:59 +00:00
committed by zzz
parent eb5dd2ff2e
commit 52fd6ca513
2 changed files with 1 additions and 66 deletions

View File

@ -1,65 +0,0 @@
#
# This Makefile is compatible with GNU Make and should work on Linux
# (Tested on Debian 3.0)
#
#
# Your operating system
#
OS = LINUX
#
# Directories
#
INCDIR = inc
LIBDIR = lib
OBJDIR = obj
SRCDIR = src
#
# Programs
#
AR = ar
CC = gcc-3.0
#
# Flags
#
CFLAGS = -g -march=i486 -O2 -pipe -std=c99 -Wall
CFLAGS += -DOS=$(OS)
CFLAGS += -I$(INCDIR)
#
# Object files
#
OBJS = $(OBJDIR)/sam.o \
$(OBJDIR)/strl.o
#
# Build rules
#
all: depend libsam
depend:
$(CC) $(CFLAGS) -MM $(SRCDIR)/*.c > .depend
$(OBJDIR)/%.o: $(SRCDIR)/%.c
$(CC) $(CFLAGS) -o $@ -c $<
libsam: $(OBJS)
$(AR) rcs $(LIBDIR)/libsam.a $(OBJS)
#
# Cleanup rules
#
clean:
-rm -f $(LIBDIR)/libsam.a $(OBJDIR)/* .depend
tidy: clean

View File

@ -28,7 +28,7 @@ CC = gcc
# Flags # Flags
# #
CFLAGS = -g -march=i486 -O2 -pipe -std=c99 -Wall CFLAGS = -g -O2 -pipe -std=c99 -Wall
CFLAGS += -DOS=$(OS) CFLAGS += -DOS=$(OS)
CFLAGS += -I$(INCDIR) CFLAGS += -I$(INCDIR)