l3.libnazgul/test/Makefile

49 lines
781 B
Makefile
Raw Normal View History

2004-02-17 16:43:47 +00:00
### HEADER HERE
# @CLASSPATH=$(CLASSPATH) $(JAVAC) $(JFLAGS) $<
#INCLUDES=-I/
#LIBINC=-L
#LIBS=
OS=$(shell uname -s)
2004-02-17 16:43:47 +00:00
CC=gcc
CFLAGS=-Wall --static -O2 -ggdb
#-O2 -ggdb
2004-02-21 17:38:06 +00:00
INCLUDES=-I /usr/include -I ../src/
LIBINC=-L /usr/lib -L ../src
LIBS=-lnazgul
ifeq "SunOS" "${OS}"
LIBS=-lnazgul -lrt
endif
ifeq "Linux" "${OS}"
2004-02-21 17:38:06 +00:00
LIBS=-lnazgul -lrt -lpthread
endif
2004-02-17 16:43:47 +00:00
PRJNAME=Libnazgul
GDATE := $(shell date +"-%Y-%m-%d_r%H")
GFILENAME := ../$(PRJNAME)$(GDATE).tar.bz2
LOCALDIR = $(shell pwd)
CFILES := $(shell ls *.c)
#OFILES := $(patsubst %.c,%.o,$(CFILES))
FILES := $(patsubst %.c,%,$(CFILES))
all: build
build : $(FILES)
clean:
@echo -e "Cleaning..."
@rm -f *.a
@rm -f *.o
@rm -f $(FILES)
% : %.c
2004-02-21 17:38:06 +00:00
$(CC) -o $* $< $(INCLUDES) $(LIBINC) $(LIBS) $(CFLAGS)
2004-02-17 16:43:47 +00:00
2004-02-19 18:26:46 +00:00
edit:
gvim *.h *.c