Mercurial > otakunoraifu
diff system/Makefile.in @ 0:223b71206888
Initial import
author | thib |
---|---|
date | Fri, 01 Aug 2008 16:32:45 +0000 |
parents | |
children |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/system/Makefile.in @@ -0,0 +1,35 @@ +@SET_MAKE@ +CC = @CC@ +CXX = @CXX@ +LD = @CXX@ +AR = ar +RANLIB = @RANLIB@ + +CFLAGS= -I.. $(LOCAL_DEF) @CFLAGS@ @DEFS@ -pthread -O2 +CXXFLAGS = $(CFLAGS) +LDFLAGS = @LDFLAGS@ @LIBS@ -pthread + +SRCS = file.cc \ + system_config.cc + +OBJS = ${SRCS:.cc=.o} + +all: visarc libsystem.a + +libsystem.a: ${OBJS} + rm -f libsystem.a + ${AR} clq libsystem.a ${OBJS} + $(RANLIB) libsystem.a + +visarc: visarc.o libsystem.a + $(LD) -o visarc visarc.o libsystem.a $(LDFLAGS) + +clean: + rm -f visarc libsystem.a ${OBJS} *.bak + +.c.o: + $(CC) -c $(CFLAGS) -o $@ $< + +.cc.o: + $(CXX) -c $(CFLAGS) -o $@ $< +