bch
/
xmem
1
0
Fork 0

Summary: simplify makefile

This commit is contained in:
bch 2017-02-26 16:02:24 +00:00
parent 1cbabd26de
commit a63975b5f9
1 changed files with 6 additions and 5 deletions

View File

@ -1,18 +1,19 @@
CFLAGS += -I/usr/X11R6/include/
CFLAGS += -Wall -I/usr/X11R6/include/
BINDIR=/usr/local/bin
MANDIR=/usr/local/man/man1
LDFLAGS=-L/usr/X11R6/lib -lX11 -lXt -lXaw -lXmu
xmem: xmem.o get_mem.o MemStripChart.o
gcc $(CFLAGS) -o xmem xmem.o get_mem.o MemStripChart.o -L/usr/X11R6/lib -lX11 -lXt -lXaw -lXmu
$(CC) -o xmem xmem.o get_mem.o MemStripChart.o $(LDFLAGS)
xmem.o: xmem.c
gcc $(CFLAGS) -c xmem.c
$(CC) $(CFLAGS) -c xmem.c
get_mem.o: get_mem.c
gcc $(CFLAGS) -c get_mem.c
$(CC) $(CFLAGS) -c get_mem.c
MemStripChart.o: MemStripChart.c
gcc $(CFLAGS) -c MemStripChart.c
$(CC) $(CFLAGS) -c MemStripChart.c
clean:
-rm xmem *.o *~