l3.libnazgul/src/Makefile

37 lines
639 B
Makefile
Raw Normal View History

2004-02-16 21:25:11 +00:00
### HEADER HERE
# @CLASSPATH=$(CLASSPATH) $(JAVAC) $(JFLAGS) $<
#INCLUDES=-I/
#LIBINC=-L
#LIBS=
CC=gcc
CFLAGS=-ggdb -O2 -Wall
USER_CLASSPATH:=../bin:../lib
JFLAGS=-d ../bin -g -deprecation
#-verbose
PRJNAME=Libnazgul
GDATE := $(shell date +"-%Y-%m-%d_r%H")
GFILENAME := ../$(PRJNAME)$(GDATE).tar.bz2
LOCALDIR = $(shell pwd)
BINDIR=../bin
CFILES := $(shell ls *.c)
OFILES := $(patsubst %.c,%.o,$(CFILES))
2004-02-17 16:32:06 +00:00
DESTFILE=libnazgul.a
2004-02-16 21:25:11 +00:00
all: build
build : $(OFILES)
2004-02-17 16:32:06 +00:00
ar rc $(DESTFILE) $(OFILES)
ranlib $(DESTFILE)
2004-02-16 21:25:11 +00:00
clean:
@echo -e "Cleaning..."
2004-02-17 16:32:06 +00:00
@rm -f *.a
2004-02-16 21:25:11 +00:00
@rm -f *.o
%.o : %.c
$(CC) $(CFLAGS) $(INCLUDES) $(LIBINC) $(LIBS) -c $< -o $*.o