Permalink
Browse files

vastly simplify Makefile

  • Loading branch information...
1 parent 943ed00 commit aa90c9483288680a40b465a5e8f3c384baf43ea6 @falconindy committed Mar 28, 2010
Showing with 1 addition and 17 deletions.
  1. +1 −17 Makefile
View
@@ -1,4 +1,3 @@
-CC=gcc
MACROS=-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
CFLAGS=-O2 -pipe -Wall -pedantic -std=c99
LDFLAGS=-ljansson -lcurl -lalpm
@@ -9,22 +8,7 @@ all: cower
cower: cower.c $(OBJ)
$(CC) $(CFLAGS) $(MACROS) $(LDFLAGS) $< $(OBJ) -o $@
-alpmhelper.o: alpmhelper.c alpmhelper.h
- $(CC) $(CFLAGS) $(MACROS) $< -c
-
-aur.o: aur.c aur.h
- $(CC) $(CFLAGS) $(MACROS) $< -c
-
-conf.o: conf.c conf.h
- $(CC) $(CFLAGS) $(MACROS) $< -c
-
-fetch.o: fetch.c fetch.h
- $(CC) $(CFLAGS) $(MACROS) $< -c
-
-package.o: package.c package.h
- $(CC) $(CFLAGS) $(MACROS) $< -c
-
-util.o: util.c util.h
+%.o: %.c %.h
$(CC) $(CFLAGS) $(MACROS) $< -c
clean:

0 comments on commit aa90c94

Please sign in to comment.