2004-02-16 21:25:11 +00:00
|
|
|
### HEADER HERE
|
|
|
|
|
|
|
|
# @CLASSPATH=$(CLASSPATH) $(JAVAC) $(JFLAGS) $<
|
|
|
|
|
|
|
|
#INCLUDES=-I/
|
|
|
|
#LIBINC=-L
|
|
|
|
#LIBS=
|
|
|
|
|
|
|
|
CC=gcc
|
2019-09-16 15:01:44 +00:00
|
|
|
CFLAGS=-ggdb -Wall -O2
|
2004-02-16 21:25:11 +00:00
|
|
|
#-O2
|
|
|
|
#LIBS=-lrt
|
|
|
|
#-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))
|
|
|
|
DESTFILE=libnazgul.a
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
build : $(OFILES)
|
|
|
|
ar rc $(DESTFILE) $(OFILES)
|
|
|
|
ranlib $(DESTFILE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo -e "Cleaning..."
|
|
|
|
@rm -f *.a
|
|
|
|
@rm -f *.o
|
|
|
|
|
|
|
|
%.o : %.c
|
|
|
|
$(CC) $(CFLAGS) -c $< $(INCLUDES) $(LIBINC) $(LIBS) -o $*.o
|
|
|
|
|