Some more Makefile updates

This commit is contained in:
mpc
2004-08-09 09:39:20 +00:00
committed by zzz
parent 44af799b66
commit 2c2a103676
6 changed files with 52 additions and 52 deletions

View File

@ -2,7 +2,6 @@
# This Makefile contains instructions common to all platforms
#
#
# Build rules
#
@ -23,4 +22,4 @@ libsam: $(OBJS)
#
clean:
-$(RM) -f $(LIBDIR)/libsam.a $(OBJDIR)/* .depend
-$(RM) -f $(LIBDIR)/libsam.a $(OBJDIR)/*.o .depend

View File

@ -1,34 +0,0 @@
#
# This Makefile is compatible with GNU Make
#
#
# Programs
#
CC = gcc
#
# Flags
#
CFLAGS = -g -O2 -pipe -std=c99 -Wall
CFLAGS += -I../inc -L../lib
LIBS = -lsam
#
# Build rules
#
all: warhammer-dgram
warhammer-dgram: warhammer-dgram.c
$(CC) $(CFLAGS) -o warhammer-dgram.o -c warhammer-dgram.c
$(CC) $(CFLAGS) -o warhammer-dgram warhammer-dgram.o $(LIBS)
#
# Cleanup rules
#
clean:
-rm -f *.o *.exe warhammer-dgram

View File

@ -0,0 +1,20 @@
#
# This Makefile contains instructions common to all platforms
#
#
# Build rules
#
all: clean warhammer-dgram
warhammer-dgram: warhammer-dgram.c
$(CC) $(CFLAGS) -o warhammer-dgram.o -c warhammer-dgram.c
$(CC) $(CFLAGS) -o warhammer-dgram warhammer-dgram.o $(LIBS)
#
# Cleanup rules
#
clean:
-$(RM) -f warhammer-dgram *.exe *.o

View File

@ -7,6 +7,7 @@
#
CC = C:\Dev-Cpp\bin\gcc
RM = C:\Dev-Cpp\bin\rm
#
# Flags
@ -18,18 +19,7 @@ CFLAGS += -I../inc -L../lib
LIBS = -lsam -lwsock32
#
# Build rules
# Include the make instructions common to all platforms
#
all: warhammer-dgram
warhammer-dgram:
$(CC) $(CFLAGS) -o warhammer-dgram.o -c warhammer-dgram.c
$(CC) $(CFLAGS) -o warhammer-dgram warhammer-dgram.o $(LIBS)
#
# Cleanup rules
#
clean:
-rm -f *.o *.exe warhammer-dgram
include Makefile.common

View File

@ -0,0 +1,24 @@
#
# This Makefile is compatible with GNU Make and should work on POSIX systems
#
#
# Programs
#
CC = gcc
RM = rm
#
# Flags
#
CFLAGS = -g -O2 -pipe -std=c99 -Wall
CFLAGS += -I../inc -L../lib
LIBS = -lsam
#
# Include the make instructions common to all platforms
#
include Makefile.common

View File

@ -1,5 +1,5 @@
#
# This Makefile is compatible with GNU Make
# This Makefile is compatible with GNU Make and should work on POSIX systems
#
#
@ -8,6 +8,7 @@
CC = gcc
INSTALL = install
RM = rm
#
# Flags
@ -21,7 +22,7 @@ LIBS = -lsam
# Build rules
#
all: i2p-ping
all: clean i2p-ping
i2p-ping: i2p-ping.c
$(CC) $(CFLAGS) -o i2p-ping.o -c i2p-ping.c
@ -35,4 +36,4 @@ install: i2p-ping
#
clean:
-rm -f *.o *.exe i2p-ping
-$(RM) -f i2p-ping *.o